Re: Passing variable.. how to
| From: | Andy Hoffman | Date: | Wed, 08 Nov 2000 18:16:40 +0000 |
| Subject: | Re: Passing variable.. how to | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3758@lists.php.net to get a copy of this message | ||
Martin Verstegen wrote:
> Yes that will work in a PHP file. But I want it to pass from an HTML to a
> PHP file. In fact it's more of an HTML question I think :).
You can use Javascript to get a URL encoded query string and then use
<script>document.write()</script> calls within the HTML to dynamically rewrite
this query string value in the URL passed to a php script.... something like
this
URL: frameset.html?custid=jansen
Inside frameset.hmtl:
<script>
var myquerystring = document.location.search;
</script>
<frameset ....>
<frame
src="header.php<script>document.write(myquerystring);</script>">
...
</frameset>
This should pass along the ENTIRE query string passed to the frameset file
(including the leading question mark) to the header php script.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com