Hello all ,
I want to write a Yes/No form with radio buttons. By default none of the buttons would be checked.
On submit, I want to check that at least one of then is checked!
function draw2($postid, $postName, $canId, $canName) // for Yes/No candidates
{
colspan='2' img src='images/".$canId.".jpg'".$canName."
input type='radio' name='".$postId . "' value='" . $postId . "_yes' />Yes
input type='radio' name='".$postId . "' value='" . $postId . "_no' />No
}
The sceneario is that each person has Yes/No against him.
How do I record either a yes or no answer and ensure that at least one is chosen?