Absoulutely.
Since PHP is server-side you can write javascript dynamically on the fly
which are then executed client-side.
Here's a simple example:
<!-- yourpage.php-->
<script language="Javascript">
var today = '<?php echo date("Y-m-d", time()); ?>';
</script>
> -----Original Message-----
> From: Steve Davies [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 31, 2003 1:27 AM
> To: [EMAIL PROTECTED]
> Subject: MySql, PHP and Javascript
>
>
> Hi All
>
> Is it possible to mix javascript and PHP in the same script??
>
---------------------------------------------------------------------
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