Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
You are right, there is a reason I am echoing it in php, it is one result of an if statement. ?php if (basename($PHP_SELF) == index.php) { echo body onload=\start();initialize();onoff('mainmenu',section,'on')\ onresize=\window.location.reload(false)\ topmargin=\1\ bottommargin=\0\

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
I'm not constructing it with, it is just included in the file. Does that clarify? Or did I misunderstand your point? On 11/13/02 1:47 AM, Ernest E Vogelsinger [EMAIL PROTECTED] wrote: You didn't show how you construct the JavaScript string in PHP - I'm sure the problem is with quoting in

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread @ Edwin
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

[PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Aaron Merrick
Folks, Can't see an answer anywhere in the archives, so here goes. This works fine in plain html: body onload=start();initialize();onoff('mainmenu',section,'on') onresize=window.location.reload(false) topmargin=1 bottommargin=0 leftmargin=0 rightmargin=0 When I put it in PHP thus: echo body

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread @ Edwin
Hello, Aaron Merrick [EMAIL PROTECTED] wrote: Folks, Can't see an answer anywhere in the archives, so here goes. This works fine in plain html: body onload=start();initialize();onoff('mainmenu',section,'on') onresize=window.location.reload(false) topmargin=1 bottommargin=0 leftmargin=0

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Chris Shiflett
@ Edwin wrote: Aaron Merrick [EMAIL PROTECTED] wrote: This works fine in plain html: body onload=start();initialize();onoff('mainmenu',section,'on') onresize=window.location.reload(false) topmargin=1 bottommargin=0 leftmargin=0 rightmargin=0 When I put it in PHP thus: echo body

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread @ Edwin
Chris Shiflett [EMAIL PROTECTED] wrote: ...[snip]... Yes, this is the same code that works fine in plain html. Why echo it in PHP if it is static? Good question ;) But I'm sure there's a good a answer :) Besides, why would anybody want to do that if there's no good reason? - E -- PHP

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Ernest E Vogelsinger
You didn't show how you construct the JavaScript string in PHP - I'm sure the problem is with quoting in there. Have a look at your output in the browser (do a View Source or whatever your Browser calls it), and check the JS your PHP application constructed. You'll spot the error... At 05:28