> Hi All > > Is it possible to mix javascript and PHP in the same script??
Client-side Javascript can be sent to the user along with your html. For Example: echo ("<HTML><HEAD>\n"); echo ("<SCRIPT TYPE=\"text/javascript\">\n"); echo ("<!--\n"; echo ("function hello() {\n"); echo (" alert('Hi');\n"); echo ("}\n"); echo ("// -->\n"); echo ("</SCRIPT>\n"); and so on... The client is then sent: <HTML><HEAD> <SCRIPT TYPE=\"text/javascript\"> <!-- function hello() { alear('Hi'); } // --> </SCRIPT> Is it possible to use JavaScript calls on the server side? Don't think so, but there is a Java extension to PhP that may help you if that's what you're after: http://www.php.net/manual/en/ref.java.php HTH, Josh > I have a number of web based apps written in PHP/MySql and while they > are functionally pretty good they are aesthetically garbage. I'll like > to pretty up the interfaces with rollovers etc, but haven't got time to > learn JS properly especially if I have to completly re-write the > functionality. > > Any help greatly appreciated > > Steve --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php