Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux