<?php
$PageSecurity = 2;
include('includes/session.inc');
include('includes/SQL_CommonFunctions.inc');
?>
<div id="state_id">
    <select name="pre_state" id="pre_state" onchange="find_city(this.value)">
    <option value="000">---Select---</option>
  <?php 
  $state_sql=DB_query("select * from state_master where country='".$_GET['country']."'",$db);
  while($state_row=DB_fetch_array($state_sql))
  {
  ?>
  <option value="<?php echo $state_row['id'];?>"><?php echo $state_row['state'];?></option>
   <?php } ?>
  </select></div>