Re: php and javascript error
| From: | Ed Curtis | Date: | Wed, 07 Mar 2007 18:24:55 +0000 |
| Subject: | Re: php and javascript error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250024@lists.php.net to get a copy of this message | ||
Edward Kay wrote:
The problem wasn't a stray apostrophe. Brad Fuller was dead on. It was the space in the window name option of the javascript. It works as expected once the space is removed.I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just saying it's OK, when it clearly isn't.Not it, I looked and there's nothing there.you've got a stay quote mark in one of your PHP vars.
My scripts aren't meant for distribution also they will only ever be delpoyed on a server that I control. Thanks for the tip though and thanks to everyone that helped. EdIf you move to another server where the short tags option is off, your code will break. From the manual: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your controlCan you tell me why? Is it just a personal preference?PPS: It's advisable not to use the short tags, use <?php instead of <?