title: How to fill the text boxes based on the value of select box options in PHP
body: <p>I have a form like this </p>
  
  <pre><code>&lt;form &gt;
  &lt;select name = "person"&gt;
    &lt;option name ="first" value= "first"&gt;@$_SESSION['person']&lt;/optio&gt;
    .
    .
    .
   &lt;/select&gt;
  </code></pre>
  
  <p>and two text boxes</p>
  
  <pre><code>&lt;input type="text" name = "name" value ="" &gt;
  &lt;input type ="text" name ="address" value= ""&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Please explain with syntax ,how to fill the text boxes base on the option selected in the drop down list.</p>