title: How to send user to a certain website when a specific access code is submitted
body: <p>I have been looking for multiple ways to redirect users to a html page when a certain access code if submitted in a form. I have the form up and is working properly, but I can't get it to redirect to the right page, I have seen 1 other post like this, but with specific user login.</p>
  
  <pre><code>&lt;?php
  $_GET["code"] = $accessCode;
  
  if ($accessCode === "code123") {
  header("Location: http://www.example.com/code_123.html");
  } else if ($_GET["code"] === "test") {
  header("Location: http://www.example.com/code_test.html");
  } else {
  header("Location: http://www.example.com/unknown_code.html");
  }
  ?&gt;
  </code></pre>
  
  <p>I even tried using the redirect option (cPanel)
  Whenever I use the code code123 or test, they redirect me to unknown_code.html
  I tried using both <code>if ($accessCode === "code123")</code> and  <code>($_GET["code"] === "test")</code></p>