"Aaron Merrick" <[EMAIL PROTECTED]> wrote: > You are right, there is a reason I am echoing it in php, it is one result of > an if statement.
Well, I thought so :) ...[snip]... > I tried echoing with single quotes - no change. So I compared the view > source of the double quoted php generated page and of the html generated > page - they are identical: > > <body onload="start();initialize();onoff('mainmenu',section,'on')" > onresize="window.location.reload(false)" topmargin="1" bottommargin="0" > leftmargin="0" rightmargin="0"> > > So I no longer think php is parsing the javascript incorrectly - the same > error happens if I put the 'onoff()' function directly in html and only put > the 'start()' function in the if statement. The weird thing is that the php > page still gives the error and the html does not. I can only guess... What happens when you take out the start() then? I think it'd be a good idea anyway to take away the js codes in your <body> tag (also the xxxmargin stuffs) since your page wouldn't actually validate as valid xhtml (if you're concerned of course...). Is it not possible to put those inside the <head> tags, in-between <script> tags? - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php