Jump to content
PHPJack77

Message Box With PHP

Recommended Posts

<?php echo "<script>alert('alert text')</script>";?>

Just curious, does that javascript still work in php if you have javascript disabled?

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...