title: Wordpress giving me a 404 error for php form
body: <p>Since the Wordpress form seems to not want to send me the password to my account for help on their forums I figured I would start here.</p>
  
  <p>I have created a form for my website so that someone can contact us.</p>
  
  <p>But when the person clicks the 'send' button it takes them to a 404 page, which the address reads:</p>
  
  <p>website address - /working/mail.php</p>
  
  <p>I know Wordpress supports .php files and I have mine correctly named and wasn't sure if I am missing something</p>
  
  <pre><code>    &lt;div id="FGSform"&gt; 
     &lt;form action="mail.php" method="post" name="contactFGS" id="contactFGS"&gt;
  &lt;ul&gt;
  &lt;li&gt;
      &lt;label for="first-name"&gt;First Name&lt;/label&gt;
  &lt;br&gt;
      &lt;input type="text" id="firstname" name="firstname" required aria-required="true"&gt;
  &lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;
      &lt;label for="last-name"&gt;Last Name&lt;/label&gt;&lt;br&gt;
      &lt;input type="text" id="lastname" name="lastname" required aria-required="true"&gt;
  &lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;
      &lt;label for="email"&gt;Email&lt;/label&gt;
  &lt;br&gt;
      &lt;input type="email" id="email" name="email" required aria-required="true"&gt;
  &lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;
    &lt;label for="contact-reason" id="reason" name="reason"&gt;Reason for Contact&lt;/label&gt;
        &lt;select required id="reason" name="reason"&gt;
        &lt;option value="3"&gt;Employment&lt;/option&gt;
        &lt;option value="1"&gt;Print Services&lt;/option&gt;
        &lt;option value="2"&gt;Design Services&lt;/option&gt;
        &lt;option value="4"&gt;Questions&lt;/option&gt;
        &lt;option value="5"&gt;Other&lt;/option&gt;
      &lt;/select&gt; 
  &lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;
    &lt;label for="comments"&gt;Comments&lt;/label&gt;
  &lt;br&gt;
      &lt;textarea name="comments" id="comments" cols="40" rows="10" required&gt;&lt;/textarea&gt;
  &lt;/li&gt; 
  &lt;br&gt;
  &lt;li&gt;
      &lt;input type="radio" id="newsletter" name="newsletter"&gt;
      &lt;label for="signmeup"&gt;Sign me up for newsletter, updates and other information about FGS&lt;/label&gt;  
  &lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;
  &lt;input type="submit" value="Send"&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p></p>
  
  <p>Here is my .php file:</p>
  
  <pre><code>&lt;?php
  
   /* Email Variables */
   $emailSubject = 'mail!'; 
  $webMaster = 'kmurray.1@frgraphicsolutions.com';
  
  
  
  /* Data Variables */
  $name = $_POST['name'];
  $lastname = $_POST['lastname'];
  $email = $_POST['email'];
  $email = $_POST['email'];
  
  
  
  
  
  $body = &lt;&lt;&lt;EOD
  &lt;br&gt;&lt;hr&gt;&lt;br&gt;
  Name: $name &lt;br&gt;
  Last Name: $lastname &lt;br&gt;
  Email: $email &lt;br&gt;
  Comments: $comments &lt;br&gt;
  EOD;
  $headers = "From: $email\r\n";
  $headers .= "Content-type: text/html\r\n";
  $success = mail($webMaster, $emailSubject, $body,
  $headers);
  
  
  /* Results rendered as HTML */
  $theResults = &lt;&lt;&lt;EOD
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;sent message&lt;/title&gt;
  &lt;meta http-equiv="refresh" content="3;URL=http://frgraphicsolutions.com/working/?page_id=8"&gt;
  &lt;style type="text/css"&gt;
  &lt;!--
  body {
  background-color: #444; 
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: normal;
  font-weight: normal;
  color: #fec001;
  text-decoration: none;
  padding-top: 200px;
  margin-left: 150px;
  width: 800px;
  }
  --&gt;
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;div align="center"&gt;Thank you!&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  EOD;
  echo "$theResults";
  ?&gt;
  </code></pre>
  
  <p>I have never created a form before, but Wordpress plug-ins are terrible designed and/or over complicate the form giving me little control over what I want in it. </p>
  
  <p>Any help is much appreciated. </p>