a error with IF statement to check if checkbox is on
Posted: Mon Dec 04, 2006 2:16 am
Im getting an error for my checkbox thing this is it:
Notice: Use of undefined constant on - assumed 'on' in c:\program files\easyphp1-8\www\mythic aeons\mailed.php on line 95
this is the code
Notice: Use of undefined constant on - assumed 'on' in c:\program files\easyphp1-8\www\mythic aeons\mailed.php on line 95
this is the code
Code: Select all
if (isset($_POST['t&c']) && $_POST['t&c'] == on)
{
}
else
{
echo '<font color="blue" size="4">Error:</font><font color="blue" size="3"><i> Please check the terms & conditions box.<br/></i></font>';
$bool[9]=false;
}