title: PHP Form not reconsigning its been posted
body: <p>I have  PHP query to a MSSQL Database. It Looks like this:</p>
  
  <pre><code>&lt;?php 
  
      if (isset($_POST['form6'])) {
          $Title=$_POST['Title'];
          $Synopsis=$_POST['Synopsis'];
          $Article=$_POST['Article'];
          $DateUploaded= date("Y-m-d H:i:s");
          $Deleted=$_POST['Deleted'];
  
          $myServer = "**********";
          $myUser = "**********";
          $myPass = "******";
          $myDB = "*********";
  
          $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); 
          mssql_select_db($myDB) or die;
  
          $dbTABLE = "Tablename";
          $query_sql = sprintf("INSERT INTO %s (Title, Synopsis, Article, DateUploaded, Deleted)   VALUES ('%s','%s','%s','%s','%s')",
          addslashes($dbTABLE),
          addslashes($Title),
          addslashes($Synopsis),
          addslashes($Article),
          addslashes($DateUploaded),
          addslashes($Deleted));
  
          if ($result = mssql_query($query_sql, $dbhandle)) {
              print "Your information has been successfully added to the database.";
              header('Location: News.php');
          }
      }
  ?&gt;
  </code></pre>
  
  <p>Originally it was on a seperate .php file and got executed on the 'action' of the form. However to lessen the amount of redirects I moved it to the same page as the form and included that if statement at the top, to try and get it to execute on post of the form, which is named form6.</p>
  
  <p>here is the form line.:</p>
  
  <pre><code>&lt;FORM method="post" name="form6" id="form6" ENCTYPE="multipart/form-data" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt;
  </code></pre>
  
  <p>However all this seems to do is refesh the page, and no data is addded to the database and it does not hit the header to redirect to News.php. </p>
  
  <p>I also tried it with no action, same result. My question is why doesn' this make it hit the php function/query?</p>