PHPJack77 Posted June 21, 2006 Share Posted June 21, 2006 Is it possible to create message boxes with php? If so how? Thanks! Link to comment Share on other sites More sharing options...
aspnetguy Posted June 21, 2006 Share Posted June 21, 2006 <?php echo "<script>alert('alert text')</script>";?> Link to comment Share on other sites More sharing options...
PHPJack77 Posted June 21, 2006 Author Share Posted June 21, 2006 Perfect! Thank you! Link to comment Share on other sites More sharing options...
Err Posted June 23, 2006 Share Posted June 23, 2006 <?php echo "<script>alert('alert text')</script>";?> <{POST_SNAPBACK}> Just curious, does that javascript still work in php if you have javascript disabled? Link to comment Share on other sites More sharing options...
Little Goat Posted June 23, 2006 Share Posted June 23, 2006 no, all that does is make th content of the page be <script>alert('alert text')</script> Link to comment Share on other sites More sharing options...
aleksanteri Posted June 23, 2006 Share Posted June 23, 2006 Just came in mind that you could use VBScript to format the message box. <html><body><?php print("<script type=\"text/vbscript\">msgbox(\"Warning, your computer hasn't allocated enough memory to display this message box. Click OK to continue\",16,\"Warning\")\n</script>");</body></html> Link to comment Share on other sites More sharing options...
scott100 Posted June 23, 2006 Share Posted June 23, 2006 Just came in mind that you could use VBScript to format the message box.VB Script should never be used on the client side - only Internet Explorer supports it. Always use Javascript Link to comment Share on other sites More sharing options...
aspnetguy Posted June 23, 2006 Share Posted June 23, 2006 yeah, never use VBScript unless it is for writing ASP files. There is no other way to create a MessageBox, as far as I know, unfortunately it would not work with javascript disabled. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now