Fw: [SMARTY] JavaScript / PHP syntax problems
| From: | James Johnson | Date: | Thu, 12 Dec 2002 19:53:53 +0000 |
| Subject: | Fw: [SMARTY] JavaScript / PHP syntax problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128054@lists.php.net to get a copy of this message | ||
My mistake for posting to the wrong list. Meant to go to php-general.
I've got it working now. There's an option in Dreamwever for escaping quotes
with % 's or not.
Jim
----- Original Message -----
From: "Hoffman, Geoffrey" <ghoffman@aztrib.com>
To: "James Johnson" <james@owell.com>
Sent: Thursday, December 12, 2002 10:20 AM
Subject: RE: [SMARTY] JavaScript / PHP syntax problems
> When you say it's not getting passed, what do you mean exactly? Forget
about
> the iframe for a sec - If you view source on the page, is it in the code
or
> not?
>
> Are you getting
> src="pgDetail.php?siteID=1"
> or
> src="pgDetail.php?siteID="
> ?
>
> Whats %22, a single or double quote? If so you only have 1 of them in the
> snippet you posted.
> Or is that a 'feature' of the listserv?
>
> You posted:
>
>
>
> -----Original Message-----
> From: James Johnson [mailto:james@owell.com]
> Sent: Thursday, December 12, 2002 11:09 AM
> To: smarty-general@lists.php.net
> Subject: [SMARTY] JavaScript / PHP syntax problems
>
>
> Hi,
>
> I'm using Dreamweaver as my PHP editor. I'm building an app which uses
> IFRAMES to show different PHP pages. Dreamweaver has a behavior which sets
> the text of a layer to HTML code. This works fine, until I try to pass a
> variable to the PHP page which shows up in the IFRAME.
>
> Here is what I want to pass:
>
> <iframe src="pgDetail.php?siteID=1" name="pgDetail"
> width="100%"
> height="100%" scrolling="Auto" id="pgDetail"
> frameborder="0"></iframe>
>
> This is what DW generates:
>
> onClick="MM_setTextOfLayer('holder','','%3Ciframe
> src=%22pgDetail.php?siteID=%22<? echo $siteID;?> name=%22pgDetail%22
> width=%22100%25%22 height=%22100%25%22 scrolling=%22Auto%22
> id=%22pgDetail%22 frameborder=%220%22%3E%3C/iframe%3E')"
>
> But the $siteID is not getting passed.
>
> Thanks,
>
> Jim Johnson
>
>