title: PHP - Self form submission: $_SERVER['PHP_SELF'] OR action=""?
body: <p>I just realise that, for some weird circumstances, I was doing what I believe to be self submissions, without any reference to PHP_SELF on the action form attribute.</p>
  
  <p>I'm puzzled, can we either use </p>
  
  <pre><code>&lt;?php echo filter_var($_SERVER['PHP_SELF'], FILTER_SANITIZE_STRING); ?&gt;
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>action="" 
  </code></pre>
  
  <p>?</p>
  
  <p>If not, on what circumstances should we considered one, or another?</p>
  
  <p>Thanks in advance,
  MEM</p>