title: PHP Form Not Storing and Outputting Data
body: <p>I am new to PHP and need to create a form. My form doesn't output the data I input into the form when I press <code>submit</code>. The files are being ran from the <code>htdocs</code> folder of my Apache server. Any help would be appreciated.</p>
  
  <p><strong>Here is my <code>HTML</code> code</strong></p>
  
  <pre><code> &lt;html&gt;
  &lt;body&gt;
  
      &lt;style&gt;
        body {
          background-color: #66c2ff;
          font-family: 'Tangerine', serif;
          font-size: 24px;
        }
      &lt;/style&gt;
  
          &lt;div id="header" class="section"&gt;
              &lt;p style="text-align:center;"&gt; &lt;img src="http://i63.tinypic.com/34sgvpy.png"&gt; &lt;/p&gt;
              &lt;p align="center"&gt;Welcome&lt;/p&gt;
          &lt;/div&gt;
  
  
  &lt;form action="abiform.php" method="post"&gt;
  &lt;p&gt;Company Name: &lt;input type="text" name="yourname" /&gt;&lt;br /&gt;
  &lt;br /&gt;
  E-mail: &lt;input type="text" name="email" /&gt;&lt;br /&gt;&lt;/P&gt;
  
  &lt;p&gt;Urgency:
  &lt;input type="radio" name="urgency" value="Low" checked="checked" /&gt; Low
  &lt;input type="radio" name="urgency" value="Medium" /&gt; Medium
  &lt;input type="radio" name="urgency" value="High" /&gt; High&lt;/p&gt;
  
  &lt;p&gt;Existing Feature or Issue:
  &lt;input type="radio" name="existingissue" value="Yes" checked="checked" /&gt; Yes
  &lt;input type="radio" name="existingissue" value="No" /&gt; No
  &lt;input type="radio" name="existingissue" value="Not Sure" /&gt; Not Sure&lt;/p&gt;
  
  &lt;p&gt;Max Hours Willing to Spend on Issue: &lt;input type="text" name="hours" /&gt;&lt;br /&gt;&lt;/P&gt;
  
  &lt;p&gt;Issue Description:&lt;br /&gt;
  &lt;textarea name="description" rows="10" cols="40"&gt;&lt;/textarea&gt;&lt;/p&gt;
  
  &lt;p&gt;Expected Outcome:&lt;br /&gt;
  &lt;textarea name="outcome" rows="10" cols="40"&gt;&lt;/textarea&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;input type="submit" value="Submit"&gt;&lt;/p&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>My <code>PHP</code> Form</strong></p>
  
  <pre><code>&lt;?php
  $yourname = check_input($_POST['yourname']);
  $email = check_input($_POST['email']);
  $urgency = check_input($_POST['urgency']);
  $existingissue = check_input($_POST['existingissue']);
  $hours = check_input($_POST['hours']);
  $description = check_input($_POST['description']);
  $outcome = check_input($_POST['outcome']);
  ?&gt;
  
  &lt;html&gt;
  &lt;body&gt;
  
  Company Name: &lt;?php echo $_POST['yourname']; ?&gt;&lt;br /&gt;
  &lt;br /&gt;
  Company e-mail: &lt;?php echo $_POST['email']; ?&gt;&lt;br /&gt;
  &lt;br /&gt;
  Urgency: &lt;?php echo $_POST['urgency']; ?&gt;&lt;br /&gt;
  &lt;br /&gt;
  Existing Feature or Issue? &lt;?php echo $_POST['existingissue']; ?&gt;&lt;br /&gt;
  &lt;br /&gt;
  Max Hours Willing to Spend on Issue: &lt;?php echo $_POST['hours']; ?&gt;&lt;br /&gt;
  &lt;br /&gt;
  Issue Description:&lt;br /&gt;
  &lt;?php echo $_POST['description']; ?&gt;
  &lt;br /&gt;
  Expected Outcome:&lt;br /&gt;
  &lt;?php echo $_POST['outcome']; ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;?php
  function check_input($data)
  {
      $data = trim($data);
      $data = stripslashes($data);
      $data = htmlspecialchars($data);
      return $data;
  }
  ?&gt;
  </code></pre>