title: PHP Header redirect with Radio button
body: <p>I've got this code from the web. It functions with my setup, calling the command all ok, i have the variables entered correctly.</p>
  <p>But the if .. else statement redirects to only one URL, not the if statement, but only the else. so no matter what radio i select the <a href="https://thisdomain.com/1-2/" rel="nofollow noreferrer">https://thisdomain.com/1-2/</a> domain loads.</p>
  <p>Here is the PHP/Html code:</p>
  <pre><code>&lt;?php
  $radio832112001 = intval($_POST['radio832112001']);
  
  if ($radio832112001 === 2)
  {
      header(&quot;Location: https://thisdomain.com/2-2/&quot;);
      die;
  }
  else
  {
      header(&quot;Location: https://thisdomain.com/1-2/&quot;);
      die;
  }
  ?&gt;
  
  
  
      &lt;form action=&quot;https://thisdomain.com/code/action-900.php&quot;&gt;
        &lt;input type=&quot;radio&quot; id=&quot;no&quot; name=&quot;radio832112001&quot; value=&quot;2&quot;&gt;
        &lt;label for=&quot;indoor-220&quot;&gt;No&lt;/label&gt;
        &lt;input type=&quot;radio&quot; id=&quot;yes&quot; name=&quot;radio832112001&quot; value=&quot;1&quot;&gt;
        &lt;label for=&quot;outdoor-220&quot;&gt;Yes&lt;/label&gt;
        &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
      &lt;/form&gt;
  </code></pre>
  <p>What am i missing?</p>
  <p>Cheers in advance.</p>
  <p>Steve</p>