Re: newbie problem with quotes
| From: | Steve Yates | Date: | Thu, 06 Jun 2002 03:44:24 +0000 |
| Subject: | Re: newbie problem with quotes | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14098@lists.php.net to get a copy of this message | ||
"Prachi Shroff" <prachi_shroff@yahoo.com> wrote in message
news:20020605140033.38418.qmail@web14506.mail.yahoo.com...
> the link just says
> javascript:window.open(
> Why would that happen?
> R'twick Niceorgaw <rtwick@niceorgaw.com> wrote: echo "
href=\"javascript:window.open(\"addfossilpage.php?me=$folder_id\",\"width=43
> 0\",\"height=450\" )\">";
Count your quotes...your string is
href="javascript:window.open("
At that second quote your string ends. Use single quotes inside the
doubles, or single quote the entire string and get rid of the slashes.
Something like:
echo 'href="javascript:window.open("addfossilpage.php?me=' . $folder_id .
'","width=43 0","height=450" )">';
- Steve Yates
- I drank WHAT!? - Socrates
/ Taglines by Taglinator - www.srtware.com /