Re: $_GET and multiple spaces.

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

 



On Sun, January 13, 2008 6:04 pm, Churchill, Craig wrote:
> One of the values I'm passing in a URL string contains multiple
> spaces.
>
> <a href="browse.php?DarScientificName=Argononemertes
> australiensis">...</a>
> (The multiple spaces are between Argononemertes and australiensis)

*ALL* data passed by URL to GET should be urlencoded:
http://php.net/urlencode

urlencode will preserve your data.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
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