Re: First stupid post of the year.

From: Date: Fri, 04 Jan 2008 17:20:27 +0000
Subject: Re: First stupid post of the year.
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-266611@lists.php.net to get a copy of this message
At 6:55 AM -0800 1/4/08, Jürgen Wind wrote:
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
Ahhh, I understand better now. Humble conclusion or not, your investigation was impressive. Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#266611) next »