title: $_GET works $_POST does not
body: <p>I tried to create a create a database that stores values as soon as submit button is pressed but I got:</p>
  
  <blockquote>
    <p>"Notice: Undefined index: SUBMIT in C:\xampp\htdocs\WebSite\examp.php
    on line 10"
    which prevents my program from executing
    This is my webpage:</p>
  </blockquote>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;title&gt;Dance &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h1&gt;Record examination performance&lt;/h1&gt;
  
  &lt;form method=post" action="examp.php"&gt;
  &lt;dl&gt;
  &lt;dt&gt;Man. (Email of student dancing male steps) &lt;/dt&gt;
  &lt;dd&gt;&lt;input type = "text" name="hemail" /&gt;&lt;/dd&gt;
  &lt;dt&gt;Woman. (dances female steps) &lt;/dt&gt;
  &lt;dd&gt;&lt;input type="text" name="shemail"/ &gt; 
  &lt;/dl&gt;
  &lt;dt&gt;Date of examination &lt;/dt&gt;
  &lt;dd&gt;&lt;input type="text" name="date" /&gt;&lt;/dd&gt;
  &lt;dt&gt;Style&lt;/dt&gt;
  &lt;dd&gt;
  &lt;select name="style" size="4"&gt;
  &lt;option value="BL"&gt;Ballroom&lt;/option&gt;
  &lt;option value="LT"&gt;Latin American&lt;/option&gt;
  &lt;/select&gt;
  &lt;/dd&gt;
  &lt;dt&gt;Level&lt;/dt&gt;
  &lt;dd&gt;
  &lt;select name="level"&gt;
  &lt;option value="bronze"&gt;Bronze&lt;/option&gt;
  &lt;option value="silver"&gt;Silver&lt;/option&gt;
  &lt;option value="gold"&gt;Gold&lt;/option&gt;
  &lt;/select&gt;
  &lt;/dd&gt;
  &lt;dt&gt;Mark&lt;/dt&gt;
  &lt;dd&gt;&lt;input type="number" name="mark" /&gt;
  &lt;dd&gt;
  &lt;p&gt;
  &lt;button value="press " name="SUBMIT"&gt;Submit&lt;/button&gt;
  &lt;button name="Clear" type="reset"&gt;Reset&lt;/button&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my program:</p>
  
  <pre><code>&lt;?php
  $connect=mysql_connect("localhost", "user", "");
  if(!$connect){
      die("Failed to connect: " . mysql_error()); 
  }
  else if(!mysql_select_db("studentdatabase")){
      die("Failed to connect to a database" . mysql_error());
  }
  else{
      if($_POST['SUBMIT']){
          $man=$_POST['hemail'];
          $woman=$_POST['shemail'];
          if($man==$woman ||!$man || !$woman){
              echo "There is no parner! ";
              die("Nothing is added");
              mysql_close($connect);
          }else {
              $date=$_POST["date"];
          }
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>So it means in $_POST but when I am changing it $_GET it starts working. and the same in other variables $woman, $man etc. in other programs that I wrote it was working fine but here... Any help? Thanks in advance!</p>