Re: URL vars in URL var?
| From: | Shawn McKenzie | Date: | Tue, 03 Dec 2002 17:33:23 +0000 |
| Subject: | Re: URL vars in URL var? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126886@lists.php.net to get a copy of this message | ||
Great thanks! Since I'm doing this from an anchor or in the browser
location bar, I just replaced the & in the url var with %26. Works great!
-Shawn
"Adam Voigt" <adam@cryptocomm.com> wrote in message
news:1038935467.1862.19.camel@beowulf.cryptocomm.com...
http://www.php.net/manual/en/function.urlencode.php
Pass it through that function (or one of the others) on:
http://www.php.net/manual/en/ref.url.php
On Tue, 2002-12-03 at 12:01, Shawn McKenzie wrote:
I'm trying to pass a URL as a var in a URL:
The url var should equal:
http://www.someothersite.com/index.php?something=something&x=100&y=200
And I'm passing it to this URL:
http://www.somesite.com/index.php?var=val
So if I use:
http://www.somesite.com/index.php?var=val&url=http://www.someothersite.com/i
ndex.php?something=something&x=100&y=200
The problem is, if I echo $url; I get the following:
http://www.someothersite.com/index.php?something=something
So the vars after the & in the url var are being truncated, I'm assuming
that they are treated as vars of the main URL.
Any help appreciated,
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc