Re: passing GET parameter that has '&' sign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux