On 26 July 2004 01:13, Robert Frame wrote:
> OK, now I am bewildered again.
>
> Sample Code
>
> <?php
>
> echo '<script language="text/javascript">';
<script language="JavaScript">
> echo '<!-- ';
> echo 'function myWindow() { alert("javascript from php")}';
> echo '//--> </script>';
There's no need to echo your script from php -- just as with large chunks of
regular html, you can drop out of php mode and just write it as you want it:
?>
<script language="JavaScript">
<!--
function myWindow() { alert("javascript from php")}
//-->
</script>
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php