Hey All,
I got a bit of a problem thats giving me a major headache.
I have a form which generates checkboxes from a database, so there isnt a set number of them ... they are generated by the following:
while ($listing_row = mysql_fetch_array($listing_results)) {
extract($listing_row);
echo "<input type=\"checkbox\" name=\"checkbox\" value=\"".$description."\" id=\"list".$id."\" ><label for=\"list".$id."\"> " .$description . "</label><font color=\"#FF0000\"> - ".$date_uploaded."</font><br />\r";
}
I want the next script to take each of the checked boxes and assign them to a variable so that i can recall them at a later stage.
For example ... if there was 150 checkboxes and only 2 were checked, then $checked1 would equal the description of the first checked box, $checked2 would equal the description of the second checked box, and so on.
Cheers