if ($a ='' && $b =='') { echo "no mail"; } else { mail('mail@mail.nl',$subject,$messagepo,"$headers"); } header("location:thanks.php");
why does this not work
$a = '' should be $a == ''
And make sure your variables are set.