PX : code

JSalert by Andrew
Download this code


<?php
// call from php code like this

jsalert("This is the alert text");

// makes it real easy to do quick alerts.


function jsalert($message)
    {
    print 
"<SCRIPT LANGUAGE='JavaScript'>";
    print 
"alert('$message')"
    print 
"</script>";
    } 

?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.