title: $_SERVER["PHP_SELF"] Apache/Xampp forbidden access
body: <p>I am using an Xampp/Apache server on localhost.</p>
  
  <p>I am trying to use an action on a form which posts to "register.php". </p>
  
  <pre><code>&lt;form method="post" action= "&lt;?php echo htmlspecialchars($_SERVER["register.php"]);?&gt;"&gt;
  </code></pre>
  
  <p>I get a 403 error "Access Forbidden".</p>
  
  <p>In the url it states:</p>
  
  <pre><code>&lt;br%20/&gt;&lt;b&gt;Notice&lt;/b&gt;:%20%20Undefined%20index:%20register.php%20in%20&lt;b&gt;C:/xampp/htdocs/2001/create_account.php&lt;/b&gt;%20on%20line%20&lt;b&gt;45&lt;/b&gt;&lt;br%20/&gt;
  </code></pre>
  
  <p>(Error on line 45 which is the line of code above).</p>
  
  <p>The file this code is in is a php file, create_account.php</p>
  
  <p>I have tried changing apache httpd.conf permissions, no changes. I have tried finding the solution elsewhere but no luck with a fix.</p>