title: Form data not showing in php
body: <p>I am creating a simple form with HTML and PHP.I put this code in index.html:</p>
  
  <pre><code> &lt;form action="formdata.php" method="post"&gt;
    &lt;h3 class="h3"&gt;First Name:&lt;/h3&gt;
    &lt;input type="text" name="fname"&gt;&lt;/input&gt;
    &lt;h3 class="h3"&gt;Last Name:&lt;/h3&gt;
    &lt;input type="text" name="lname"&gt;&lt;/input&gt;
    &lt;br&gt;
  
    Male
    &lt;input type="radio" name="sex" value="Male"&gt;&lt;/input&gt;
    Female
    &lt;input type="radio" name="sex" value="Female"&gt;&lt;/input&gt;&lt;br&gt;
  
    &lt;input type="Submit" value="submit"&gt;&lt;/input&gt;&lt;br&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>And here is my PHP code:</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;PHP script&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
     First Name: &lt;?php echo $_POST["fname"]; ?&gt;&lt;br&gt;
     Last Name: &lt;?php echo $_POST["lname"]; ?&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But the output in php is not showing names.It just showing</p>
  
  <pre><code>First Name:
  Last Name:
  </code></pre>
  
  <p>What should i do?</p>