How would I use a checkbox in a if statement? I was thinking something like this: -
function update_newsletter() {
if($signup == 'ON')
{
$sql3 = "INSERT INTO newsletter (email,remote_addr,confirm_hash,is_confirmed) ".
"VALUES ('$email','$GLOBALS[REMOTE_ADDR]','$hash','0')";
$result=mysql_query($sql3);
}
else {
return false;
}
}
Would this work ok? (I would actually upload and try it, but my isp is down for today, so...)