Re: $_GET and multiple spaces.
| From: | Richard Lynch | Date: | Mon, 14 Jan 2008 17:08:53 +0000 |
| Subject: | Re: $_GET and multiple spaces. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267218@lists.php.net to get a copy of this message | ||
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?