title: passing data from html to php
body: <p>dear all
  I am a beginer in PHP world (PHP 5.3.5) my web server is IIS fastCGI on win xp
  I tried to pass values from the HTML form to the php but the data are not passed</p>
  
  <h2>this is my html file</h2>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;form action="welcome.php" method="post"&gt;
  Name: &lt;input type="text" name="fname" /&gt;
  Age: &lt;input type="text" name="age" /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <hr>
  
  <h2>and this is my php file welcome.php</h2>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  Welcome &lt;?php echo $_POST["fname"]; ?&gt;!&lt;br /&gt;
  You are &lt;?php echo $_POST["age"]; ?&gt; years old.
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <hr>
  
  <p>After pressing submit the output was like this</p>
  
  <blockquote>
    <p>Welcome!<br>
    You are years old.</p>
  </blockquote>
  
  <p>but it should be like this</p>
  
  <blockquote>
    <p>Welcome John!<br>
    You are 28 years old.</p>
  </blockquote>
  
  <p>Can you please help me with this.</p>