<td>Country<span class="style6"> *</span></td> <td><label> <select name="country" id="country"> <option value="">Select Country</option> <option value="India">India</option> <option value="Others">Others</option> </select> </label></td> </tr> <tr> <td>State<span class="style6"> *</span></td> <td><label> <select name="state" id="state" onchange="getcity(this.value)"> <option value="">Select State</option> <?php $res = $obj->getstate(); while ($arr = mysql_fetch_row($res)) { ?> <option value="<?php echo $arr[0]; ?> "><?php echo $arr[1]; ?> </option> <?php } ?> </select> </label></td> </tr>