title: Why does my form submit to my php as a url instead of the actions in the php file
body: <p>Ok I have a form with multiple submit buttons.
  The coding on my php file has a header with a url depending on which form was entered.  My issue is when I submit the form( no matter which button I use) the window that pops up is not the url action assigned to that button but the php file itself.  What am I doing wrong?</p>
  
  <p>the form starts of like this so that you can see if I directed it correctly</p>
  
  <pre><code>&lt;form method="post" action="http://gamerzacademy.com/foodCYO.php" target="_blank"&gt;
  &lt;input type="text" name="uid"&gt;
  &lt;input type="submit" name="Dish1" value="Dish1" onclick="
    this.disabled=true; 
    this.value='Gift Opened'; 
    document.FreeFoodForm.submit();"&gt;
  &lt;input type="submit" name="Dish2" value="Dish2" onclick="
    this.disabled=true; 
    this.value='Gift Opened'; 
    document.FreeFoodForm.submit();"&gt;
  </code></pre>
  
  <p>etc......
      </p>
  
  <p>now the php file starts like this</p>
  
  <pre><code>&lt;?php
  if ($_REQUEST['Dish1'] == "Dish1") {
      header("Location: url1".urlencode($_POST['uid']));
  }
  else if ($_REQUEST['Dish2'] == "Dish2") {
      header("Location: url2".urlencode($_POST['uid']));
  }
  else if ($_REQUEST['Dish3'] == "Dish3") {
      header("Location: url3".urlencode($_POST['uid']));
  }
  .....etc
  ?&gt;
  </code></pre>