Re: FN-FORUM: PHP coding help
date posted 15th August 2003 16:56
oooh - ignore my last comment - it's simpler than that.
Use single quotes, not double, in the window open function call.
> This is doing my head in.
>
> I have two lines of code in PHP:
>
> $windowString = "\"closeup.php?photoname=$picString1$picString2\",
\"new\",
> \"toolbar=no,status=no,scrollbars=no,width=600,height=450\"";
> print "";
>
> which produces the following lines:
>
> "new", "toolbar=no,status=no,scrollbars=no,width=600,height=450");">
>
> However, when I pass the mouse over the linked image, I get:
>
> javascript:window.open(
>
> and an error.
>
> If I can get this one line to (&*&)((ing work, then my weekend will be
just
> that little bit nicer.
>
> Any suggestions?
>
> John Anderson
> Soaring Penguin
>