Re: First stupid post of the year.
| From: | Jim Lucas | Date: | Thu, 03 Jan 2008 00:34:31 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266544@lists.php.net to get a copy of this message | ||
tedd wrote:
> At 2:34 PM -0800 1/2/08, Jim Lucas wrote:
>> This I think shows what tedd is looking for.
>>
>> so, from this I deduce that this should work.
>>
>> $submit = trim($submit, "\xA0\x20");
>>
>> What do you guys/gals think?
>
> Nope, not a winner. But it produces some interesting results.
>
> Cheers,
>
> tedd
>
I just added the trim() part in the third box down.
AFAICT it works like it should. See for yourself.
http://www.cmsws.com/examples/html/form_encoding.php
Here is the output that I get with FF 2.0.0.11
_POST data is:
Name is submit
0000 A0 20 A0 20 43 6C 69 63 6B 20 4D 65 21 20 A0 20 ....Clic k.Me!...
0010 A0 .
What do you get?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare