T
titchyc
Guest
Can anyone help.
i have a form for selecting either 1 or 2, but need to validate it so that if none are selected it shows an error before they ca move to next stage. the code i have is as follows:
echo '<form action=myfile.php name=something method=post>';
foreach( $var1 as $var2 ) {
echo '<input type=hidden name=name value='. $var2[number] .'>';
<input type=radio name=answer value=Yes>*YES;
<input type=radio name=answer value=No>*NO
echo '<br/><br/><input type=submit name=submit value="next">
}
echo '</form>';
i have a form for selecting either 1 or 2, but need to validate it so that if none are selected it shows an error before they ca move to next stage. the code i have is as follows:
echo '<form action=myfile.php name=something method=post>';
foreach( $var1 as $var2 ) {
echo '<input type=hidden name=name value='. $var2[number] .'>';
<input type=radio name=answer value=Yes>*YES;
<input type=radio name=answer value=No>*NO
echo '<br/><br/><input type=submit name=submit value="next">
}
echo '</form>';