Stumped-SOLVED

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);
}

You’re assigning instead of comparing… here is correct line:

[php]if ($require_yes==“1”) {[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service