Hi All,
I have a script in which a variable number of checkboxes are generated and have the NAME attribute set with the value it has in the database (a one or two digit integer), preceeded by an X. For example:
<INPUT TYPE="CHECKBOX" NAME="X1">
<INPUT TYPE="CHECKBOX" NAME="X27">
I need to run a check to find which checkboxes have been checked (a maximum of four) by running a loop, but I can't work out how to write it.
Currently I have a huge list like so:
if ($X1) $Y = $Y . "01";
:
if ($X50) $Y = $Y . "50";
Any help appreciated.
Regards,
David