title: Auto fill form after selecting an item from my combo box
body: <p>I am stuck on customerdetails.php page where customer need to select the billing address title from the combo box &amp; the automatically the form with firstname,lastname,address,city...etc fields should get filled with the details from the customer table in database. How should i achieve that?</p>
  
  <pre><code>      &lt;tr&gt;
              &lt;td colspan="2"&gt;
                  &lt;select name="address"&gt;&lt;
                      &lt;option value="#"&gt;Select Address...&lt;/option&gt;
                          &lt;?php
                              $address = getAddressTitle($customer_id);
                              $count = count($address);
                                  for ($i = 0; $i &lt; $count; $i++) 
                                  {
                                      extract($address[$i]);
                                      echo '&lt;option value="'. $addressid .'"&gt;' . $addresstitle . '&lt;/option&gt;';
                                  }
                                  ?&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>The above code is used for combo box values.</p>