I have this code here:
<?php while($rowequipment = mysql_fetch_assoc($sqlequipment)) {
echo '<input type="checkbox" name="equipment[]" value="'.$rowequipment['equipmentid'].'"/> <input type="text" name="count[]" id="count[]" size="3" value=""/>'
.$rowequipment['description']."<br />";
}?>
This creates a list of checkboxes to select which equipment the user wants and text boxes to put in the number required.
Is it possible to somehow store the data in an associative array in php so that i cant then transfer this into a database? for example:
equipmentid count
1 2
3 1
Or is there a different way to do this.
Thanks.