PHP POST arrar is dropping 4 characters

From: Date: Wed, 25 Sep 2002 23:29:21 +0000
Subject: PHP POST arrar is dropping 4 characters
Groups: php.general 
Request: Send a blank email to php-general+get-117650@lists.php.net to get a copy of this message
List, I'm using PHP on my RH73 box and when I post it drops 4 characters out of the post array. Can someone look at the code below and tell me if I'm missing something? Why would it cut four characters off? Perhaps cause the name is four chars? Bug? TIA /B HTML that is sent to browser <input name='ei[]' type='checkbox' value="24033CD9-7C60-4AB0-9D7D-180D885DC857" />Item One<br /> <input name='ei[]' type='checkbox' value="8D86D6B8-A42E-4B19-B930-826AAECA2AB4" />Item Two<br /> <input name='ei[]' type='checkbox' value="3D6A7538-55ED-47C9-9447-0083EE6525F5" />Item Three<br /> <input name='ei[]' type='checkbox' value="9CAC5C80-AEAA-4EF3-9B96-750994A3E787" />Item Four<br /> PHP that reads the post: $ar_ei = $_POST['ei']; if (is_array($ar_ei)) { $c = sizeof($ar_ei); for ($i=0;$i<$c;$i++) {
     // Right here is where the first four characters are cut off from
     // the 'ei[]' value, should be
     // "24033CD9-7C60-4AB0-9D7D-180D885DC857" but instead is
     // "3CD9-7C60-4AB0-9D7D-180D885DC857"
     echo $ar_ei[$i]."<br />";
} }

« previous php.general (#117650) next »