JavaScript / PHP syntax problems

From: Date: Thu, 12 Dec 2002 18:08:39 +0000
Subject: JavaScript / PHP syntax problems
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6778@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#6778) next »