Re: URL vars in URL var?

From: Date: Tue, 03 Dec 2002 17:11:07 +0000
Subject: Re: URL vars in URL var?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126884@lists.php.net to get a copy of this message
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

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#126884) next »