title: form process using php
body: <p>for form process what's better ? (secure/fast)</p>
  
  <p>Layout Form :</p>
  
  <pre><code>&lt;form id="myForm" name="frm1" action="insert.php" method="post"&gt;
  &lt;textarea name="content" id="content" cols="35" rows="5"&gt;&lt;/textarea&gt;
  &lt;INPUT type=submit value="submit" name=submit&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Insert php :</p>
  
  <pre><code>&lt;?php
  if (( 'POST' == $_SERVER['REQUEST_METHOD'])) {
       //php validation code
  } else {
      exit();
  }
  ?&gt;  
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>&lt;?php
  if (!isset($_POST['submit']))  {
      //php validation code
  }    else {
      exit();
  }
  ?&gt;
  </code></pre>