After I posted this I did some more searching on google and found the following code, which works.
echo '<EOT><script language="javascript">function myWindow(){ alert("javascript from php");}</script>'; I then tried it without the <EOT> tag and it still worked. Apparently I had something out of wack, probably a quote. Off hand though, can anyone tell me what <EOT> is? Thanks for the help. Rob "Robert Frame" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi There, > > I have a web page with a form that is generated by PHP, and part of my > design utilizes JavaScript to provide some error checking within the objects > in the form. I have written the javascript in an html document, but I am > having trouble blending the two together. > > I have tried sending the javascript within an echo statement, as well as > using straight HTML/JavaScript code, but nothing seems to work. > > Can anyone offer some help or direct me to a solution? > > Thanks, > Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php