RE: [PHP-WIN] Passing variable.. how to
| From: | Martin Verstegen | Date: | Thu, 09 Nov 2000 14:04:15 +0000 |
| Subject: | RE: [PHP-WIN] Passing variable.. how to | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3764@lists.php.net to get a copy of this message | ||
The "document.location.search " works fine!
Thanks,
Martin Verstegen
2FIT
-----Original Message-----
From: Andy Hoffman [mailto:andy.hoffman@bms.com]
Sent: Wednesday, November 08, 2000 7:17 PM
To: Php-Windows-Help
Subject: Re: [PHP-WIN] Passing variable.. how to
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net