Hi!
I have a dynamic checkbox group to chose drills for golf players. When finished there might be 100 or so drills to select from and every player might have 20 drills selected.
The code below works fine but prints a long vertical list of ckeckboxes straight down. Is it possible to arrange the checkboxes in lets say four columns instead of just one?
<form id="drills" name="drills" method="post" action="">
<p>
<label>
<?php
// build multiple checkbox group with contents of exercise table
$allCats = 'SELECT * FROM exercise';
$catList = mysql_query($allCats);
while ($row = mysql_fetch_assoc($catList)) {
?>
<label>
<input type="checkbox" name="selectDrills" value="<?php echo $row['drillID']; ?>" id="selectDrills" />
<?php echo $row['rubrik']; ?></label>
<br />
<?php
}
?>
<input name="spelare_id" type="hidden" id="spelare_id" value="<?php echo $row_Recordset1['id']; ?>" />
</form>