Created
July 16, 2012 20:11
-
-
Save bkamapantula/3124743 to your computer and use it in GitHub Desktop.
Using Javascript alert box in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "<script language='javascript'>alert('Try to be nice, OK? Please try again :-) ')</script>"; | |
?> |
do you use the an header function in your code?
If yes try this:
alert('Try to be nice, OK? Please try again :-) ')</script>"; sleep(10); myHeaderFunctions(); function myHeaderFunctions() { header('Location: '); } ?>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why my alert box is dismissed automatically