Re: passing GET parameter that has '&' sign

From: Date: Wed, 13 Oct 2004 11:52:45 +0000
Subject: Re: passing GET parameter that has '&' sign
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199357@lists.php.net to get a copy of this message
Hello, you might try using the urlencoded version of the '&' sign which is '%26'. Works perfectly for me ;) Best regards, -sd On Wed, Oct 13, 2004 at 06:23:25PM +0800, Suka Ada, I Nyoman wrote: > hi, > I am wondering how do we pass a GET value that has '&' sign.. > let's say I have this: > > > process.php?mode=test&url=http://someurl.com/index.php?a=10&b=200 > > that way, process.php will have three variables: > $_GET['mode'] ( = 'test' ) > $_GET['url'] ( = > 'http://someurl.com/index.php?a=10' ) > $_GET['b'] ( = '200' ) > > But I actually want the variables only two: > $_GET['mode'] ( = 'test' ) > $_GET['url'] ( = > 'http://someurl.com/index.php?a=10&b=200' ) > > how to accomplish this? > > *I hope my question's not confusing. > > Thanks and regards, > Guido > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#199357) next »