Thread: form php mysql
View Single Post
 
Old February 12th, 2006, 07:34 PM
Mantis Mantis is offline
Friend of Wrox
 
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to change the name of the radio button.

Example:
1st Selection:
<p><input type="radio" value="<?php echo $Pregunta[Resp_1]; ?>" name="r">[<?php echo "A.".$Pregunta[Resp_1]; ?>]</p>
<p><input type="radio" value="<?php echo $Pregunta[Resp_2]; ?>" name="r">[<?php echo "B.".$Pregunta[Resp_2]; ?>]</p>
<p><input type="radio" value="<?php echo $Pregunta[Resp_3]; ?>" name="r">[<?php echo "C.".$Pregunta[Resp_3]; ?>]</p>

Then next selection:
<p><input type="radio" value="<?php echo $Pregunta[Resp_1]; ?>" name="r2">[<?php echo "A.".$Pregunta[Resp_1]; ?>]</p>
<p><input type="radio" value="<?php echo $Pregunta[Resp_2]; ?>" name="r2">[<?php echo "B.".$Pregunta[Resp_2]; ?>]</p>
<p><input type="radio" value="<?php echo $Pregunta[Resp_3]; ?>" name="r2">[<?php echo "C.".$Pregunta[Resp_3]; ?>]</p>

The name is what link the radio together. I hope that help.