Re: Replace space from form field using preg_replace
| From: | Ben Ramsey | Date: | Wed, 17 Mar 2004 21:01:25 +0000 |
| Subject: | Re: Replace space from form field using preg_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180745@lists.php.net to get a copy of this message | ||
If you're doing this to pass it through a URL, then use urlencode()
http://www.php.net/urlencode
Vernon wrote:
I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey