Re: [PHP] Plus sign changing to space in html form

2002-10-29 Thread Stan
When i enter 1%2B1%3D2 to the input form and submit, the result is 1+1=2 It looks like the http request received by php is not "application/x-www-form-urlencoded" but php thinks that it is. I dont know what to think about that. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:3DBDE88B.7

Re: [PHP] Plus sign changing to space in html form

2002-10-29 Thread Stan
I dont know how to see the http request. tcpdump on FreeBSD requires read access to /dev/bpf0 which i dont have. Different browsers works the same. >"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:3DBDE88B.7010009@;shiflett.org... > This is true, but the + itself should also be encoded

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Chris Shiflett
This is true, but the + itself should also be encoded. I did a quick test, and when I post a form variable called test with a value of 1+1=2, the HTTP request looks like this: POST /test.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020916 Accept

RE: [PHP] Plus sign changing to space in html form

2002-10-28 Thread John W. Holmes
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:

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Tom Woody
I did your little test and couldn't reproduce the problems you are having. as+df gets returned correctly. Test server: Apache 1.3.23-11 w/ PHP 4.1.2-7 (RH7.3 rpms) On Tue, 29 Oct 2002 00:26:39 +0100 "Stan" <[EMAIL PROTECTED]> wrote: > When i post a string containing plus sign with htmp form to a