/ Published in: PHP
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function alertJavascript($message){ echo " <script type=\"text/javascript\">alert(\"$message\");</script> " ; }