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" <[EMAIL PROTECTED]> To: "James Johnson" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 11:09 AM > To: [EMAIL PROTECTED] > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php