Re: First stupid post of the year.
| From: | Jürgen Wind | Date: | Fri, 04 Jan 2008 14:55:10 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266601@lists.php.net to get a copy of this message | ||
tedd-2 wrote:
>
> At 3:28 PM -0600 1/3/08, Richard Lynch wrote:
>>On Wed, January 2, 2008 5:26 pm, 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.
>>
>>http://www.l-i-e.com/a/
>
>
> That's neat.
>
> Cheers,
>
> tedd
>
FYI:
output of http://www.l-i-e.com/a/ in
SeaMonkey (Gecko, ),FF, default Char.encoding:Western ISO 8859-1 or UTF-8,
IE:
$_POST[a]: ' A '
0: (160)
1: (32)
2: (160)
3: (32)
4: (160)
5: A (65)
6: (160)
7: (32)
8: (160)
9: (32)
10: (160)
str_replace: ' A '
trim: 'A'
Opera 9.5beta (iso 8859-1 or utf-8)
$_POST[a]: ' A '
0: (32)
1: (32)
2: (32)
3: (32)
4: (32)
5: A (65)
6: (32)
7: (32)
8: (32)
9: (32)
10: (32)
str_replace: ' A '
trim: 'A'
Safari 3.0.4 (UTF-8)
$_POST[a]: ' A '
0: � (194)
1: � (160)
2: (32)
3: � (194)
4: � (160)
5: (32)
6: � (194)
7: � (160)
8: A (65)
9: � (194)
10: � (160)
11: (32)
12: � (194)
13: � (160)
14: (32)
15: � (194)
16: � (160)
str_replace: ' A '
trim: ' A �'
Safari 3.0.4 ("Westeuropäisch")
$_POST[a]: 'Â Â Â AÂ Â Â '
0: Â (194)
1: (160)
2: (32)
3: Â (194)
4: (160)
5: (32)
6: Â (194)
7: (160)
8: A (65)
9: Â (194)
10: (160)
11: (32)
12: Â (194)
13: (160)
14: (32)
15: Â (194)
16: (160)
str_replace: 'Â Â Â AÂ Â Â '
trim: 'Â Â Â AÂ Â Â'
(all on w2k)
(my humble) conclusion:
if('A'==$_POST['a'][5] or 'A'==$_POST['a'][8]) {
//do stuff
}
or some such is what you need
Jürgen
--
View this message in context: http://www.nabble.com/First-stupid-post-of-the-year.-tp14583639p14617982.html
Sent from the PHP - General mailing list archive at Nabble.com.