Re: String returned from forms and such
| From: | David Otton | Date: | Sun, 23 Nov 2003 22:37:10 +0000 |
| Subject: | Re: String returned from forms and such | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170738@lists.php.net to get a copy of this message | ||
On Sun, 23 Nov 2003 15:19:23 -0700, you wrote:
>When the 'New Mexico' gets to phpinfo, it says the string is 'New+Mexico'
>and that's not what I need. I used htmlspecialchars to add the %20 to the
>string but didn't get it. What am I doing wrong or missing??
That sounds like the behaviour of urlencode, not htmlspecialchars.
Try rawurlencode.
BTW, there is a urldecode function...
http://www.php.net/manual/en/ref.url.php