if ($require_yes="1") {
echo "mail sent";
//header ('Location:'.$url);
} else {
echo "no mail sent";
//header ('Location:'.$url);
}
Using the above the mail still get sent, regardless of the value of $require_yes.
I get the value from require_yes as either 1 or nothing. The value is being passed correctly. Any ideas?
Solution:
if ($require_yes=="1") {
echo "mail sent";
//header ('Location:'.$url);
} else {
echo "no mail sent";
//header ('Location:'.$url);
}