title: Why use $_SERVER['PHP_SELF'] instead of ""
body: <p>In a form on a PHP page, you can use: </p>
  
  <pre><code>&lt;form action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" ...&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;form action="#" ...&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;form action="" ...&gt;
  </code></pre>
  
  <p>in the action attribute of the form. Since echo <code>$_SERVER['PHP_SELF']</code> does not pass variables for using <code>GET</code> and you have to use <code>""</code>, why would you use that or <code>"#"</code>? </p>
  
  <p>I'm asking because it took me some time to figure out that the variables are not passed with <code>$_SERVER['PHP_SELF']</code>. Thanks.</p>