RE: [PHP] Plus sign changing to space in html form
| From: | John W. Holmes | Date: | Tue, 29 Oct 2002 00:20:07 +0000 |
| Subject: | RE: [PHP] Plus sign changing to space in html form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121797@lists.php.net to get a copy of this message | ||
The plus sign is used to signify a space in some URL encoding. PHP is
probably thinking the text is encoded and it's removing the plus sign.
Not sure on a solution.
---John Holmes...
> -----Original Message-----
> From: Stan [mailto:stann@pobox.sk]
> Sent: Monday, October 28, 2002 6:27 PM
> To: php-general@lists.php.net
> Subject: [PHP] Plus sign changing to space in html form
>
> When i post a string containing plus sign with htmp form to a php
scritp,
> the '+' is changed to space.
> e.g: i enter 'as+df' to a text input but $_POST[] returns 'as df'
instead.
> It must be in php or apache configuration bcause i have this problem
only
> on
> sytem with FreeBSD. On windows it works as expected.
>
> Know someone how could i make the '+' left intact? Please help.
>
>
> <?
> echo $_POST['test'];
> ?>
> <form actiom='test.php' method=POST>
> <input type=text value='' name=test>
> <input type=submit value='submit'>
> </form>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php