I have this code in html for a simple check box:
<td height="10" colspan="2" align="left" valign="top"><font size="2">I
have read and agreed to these terms and conditions (please check)
<input type="checkbox" name="agree" value="yes">
</font></td>
And to validate in php:
if($agree !="yes") {
echo "<font color='#990000'>Error:</font> You have not agreed to the terms and conditions.<br>";
$stop = 1;
}
Why oh why doesn't that work?? I'm going insane...
I've tried it with <b>if($agree !=="yes"</b>) too