Re: [PHP] passing GET parameter that has '&' sign
input must be urlencoded - see http://www.php.net/urlencode for details. Regards, Sune Rievers On Wed, 13 Oct 2004 18:23:25 +0800, Suka Ada, I Nyoman <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] passing GET parameter that has '&' sign
that solved it! thanks alot Stefan. -Guido Stefan Dengscherz wrote: 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.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing GET parameter that has '&' sign
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