<?php
for($i = 1; $i <= 10; $i++)
{
if($pRow["can" . $i ] != "")
{
?>
<?php echo $pRow["can" . $i]; ?>
<input type="radio" name="can" value="<?php echo $pRow["can$i"]; ?>">
<br>
<?php
}
}
?>[/B]
This code creates a list of candidates for an election and uses radio button to select which is your choice.
Im trying to modify this code so that a drop down box appears with the numbers 1 to n (n being number of candidates).
only one candidate can be the first choice and the same for second and third etc.
These values then have to be stored