Hi all
Say I have the following form
<?
include "db.php";
$sql = "SELECT * FROM table";
?>
<form action = "" method = "post">
<?
$result = mysql_query($sql);
while($rows=mysql_fetch_array($result)){
echo $rows['a'] . rows['b'] . $rows['c'] . $rows['d'] .
"choice1 <input type = 'radio' name = 'choice' value = 'x'><br>
choice2 <input type = 'radio' name = 'choice' value = 'y'>"
;}
?>
<input type = "submit" name = "submit" value = "Update">
</form>
The radio buttons work as a group together, by which I mean that if the one is selected, all the others is deselected.
How would I get the radio buttons to work in pairs, and how would I code the $_POST[] bit to use the information that is posted from the radiobuttons ?