I have a html page that asks the user to enter an email address and then when the user clicks on submit he gets redirected to a link using a php file that I made, but for some reason the php file is not working, it always redirects to the else link my php and my html are below.
<form action="/emailprocess.php">
  Email Address:<br>
  <input id="email" type="text" name="email">
  <br><br>
  <input id="emailaddress" type="submit" class="emailaddress" value="Submit">
</form><?php
If($_POST['email'] === "me@apple.com") {
    header("Location: https://www.google.co.uk/");
    } else {
        header("Location: https://google.com/");
    }
?>
 
     
     
    