I have a question that I haven't found addressed in the forum archives as of yet, (although, I could be using the wrong keywords to search). I checked the faq, "beginning PHP4", and here in the archives, and to my suprise it isn't listed, so I will ask you.
I have a form, in it I have a number of check boxes, each check box would have the same name + different value.
I.e:
<input type = checkbox name = blah value = 1>
<input type = checkbox name = blah value = 2>
In perl I could simply retrieve the selected values as a single reference using cgi-lib2.pl and assigning $blah = $input{blah}; This would set $blah = to the values(s) selected, so $blah could equal any number of values, however, in PHP I only retrieve the last selected checkbox value.
my PHP code to retrieve this is as follows:
if($HTTP_GET_VARS){
while(list($var,$value) = each($HTTP_GET_VARS)){
echo"<input type = hidden name = $var value = $value>\n";
}
}
(sorry about the confusing Tabbing).
Anyone know how I could return multiple values for the same named checkbox??
Thanks,
C.S Schuler