title: Reading data using post
body: <p>Consider following html page: <br>
  index.html</p>
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;form action=&quot;welcome.php&quot; method=&quot;post&quot;&gt;
  Name: &lt;input type=&quot;text&quot; name=&quot;name&quot;&gt;&lt;br&gt;
  E-mail: &lt;input type=&quot;text&quot; name=&quot;email&quot;&gt;&lt;br&gt;
  &lt;input type=&quot;submit&quot;&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>If GET is used for reading the data let's say &quot;name&quot; then following is understandable: <br>
  welcome.php</p>
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  Welcome &lt;?php echo $_GET[&quot;name&quot;]; ?&gt;&lt;br&gt;
  Your email address is: &lt;?php echo $_GET[&quot;email&quot;]; ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>When POST is meant for writing the data How is it possible to read the &quot;name&quot; using POST? Why should the following work? <br></p>
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  Welcome &lt;?php echo $_POST[&quot;name&quot;]; ?&gt;&lt;br&gt;
  Your email address is: &lt;?php echo $_POST[&quot;email&quot;]; ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>