title: Inserting values into form fields --PHP
body: <p>I get values from an HTML form using a post method and store them in my DB through the mysql <code>INSERT</code> command (done in PHP).</p>
  
  <p>something like this:</p>
  
  <pre><code>$value = $_POST['name'];
  $value1 = $_POST['age'];
  $sql = "INSERT INTO table(name,age) VALUES('$value','$value1')" ;
  </code></pre>
  
  <p>Now what I want to do is I want to give a link in the same PHP file like:</p>
  
  <pre><code>echo '&lt;A HREF="http://xxx.com/rascal.php/"&gt;To update just entered info click on me&lt;/a&gt;';
  </code></pre>
  
  <p>Now the rascal.php as mentioned in the link above also contains the same form fields (name and age).</p>
  
  <p>The values stored in the database through the <code>INSERT</code> command above should be fetched from the DB and placed in the respective form field area (name and age should be stored in their respective forms of rascal.php).</p>
  
  <p>How can I do this? </p>