I create checkboxes using datas from a database (with PHP).
I store all values in an array, as I must pass this value like a Form value.
Now, in some cases, when a checkbox is selected, I must disactivate other
checkboxes.
How can I do this ?
here is the code:
print("<TR><TD valign=\"top\"> <input type=\"checkbox \" name=\"details[]\"
value=\"".$row_ Recordset->ID."\"></TD><TD
valign=\"top\"> ".$row_Recordse t->Description) ;
here is the output: [] is for checkbox
[] Blue
[]
[]
[]
[]
I store all values in an array, as I must pass this value like a Form value.
Now, in some cases, when a checkbox is selected, I must disactivate other
checkboxes.
How can I do this ?
here is the code:
print("<TR><TD valign=\"top\"> <input type=\"checkbox \" name=\"details[]\"
value=\"".$row_ Recordset->ID."\"></TD><TD
valign=\"top\"> ".$row_Recordse t->Description) ;
here is the output: [] is for checkbox
[] Blue
[]
[]
[]
[]
Comment