RE: [PHP] URL Encode
| From: | Boget, Chris | Date: | Fri, 09 Feb 2001 21:56:31 +0000 |
| Subject: | RE: [PHP] URL Encode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39017@lists.php.net to get a copy of this message | ||
> I know this have been covered before but I can't find it in
> my thousands of emails... How would I URL Encode the following...
> I am retrieving a variable like <? echo "$SearchCity"; ?> but
> for example if it is Hilton Head Island I need it to add the
> + signs as Hilton+Head+Island so Netscape won't crash.
Funny enough, the function you are looking for is:
urlencode();
The docs are your friend.
Chris