I want to retrieve values from database to seleced box.I have three files ajax.js,getcitylist.php,securepage.php.In second select box values are not coming from data base.
<li>
<label for="State">State</label>
<select id="state" name="state" onChange="display(this.value)">
<option value="" selected="selected">-- Select state --</option>
<?php include("getstatelist.php");?>
</select>
</li>
<li>
<label for="City">City</label>
<div id="city">
<select id="city" name="city" onChange="display(this.value)">
<option value="" selected="selected">-- Select city --</option>
<?php include("getcitylist.php");?>
</select>
</div>
</li>