electricphp
Programmer
Ihave this line of code:
For some reason it will not redirect even if both contitions are met. for some reason if i just use this:
then it works, what could be the problem
Code:
if ($_POST["town"] != "" && $_POST['submit'] == "yes"){header("Location: searchresults.php");}
For some reason it will not redirect even if both contitions are met. for some reason if i just use this:
Code:
if ($_POST["town"] != ""){header("Location: searchresults.php");}
then it works, what could be the problem