Re: First stupid post of the year.
| From: | tedd | Date: | Thu, 03 Jan 2008 00:45:59 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266546@lists.php.net to get a copy of this message | ||
At 4:34 PM -0800 1/2/08, Jim Lucas wrote:
tedd wrote:That depends upon what Text Encoding my browser is set to. However, the point is moot. I just tried a variation of your code, namely: $submit = trim($submit, "\xA0\xC2"); And it worked. So you were on the right track, just using the wrong HEX. See my SOLVED post. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comAt 2:34 PM -0800 1/2/08, Jim Lucas wrote:Nope, not a winner. But it produces some interesting results. 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!...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?0010 A0 .What do you get?