<?php $PageSecurity = 11;
include('includes/session.inc');
include('includes/header.inc');
include('includes/SQL_CommonFunctions.inc');
$state = $_GET['state'];
$country = $_GET['country'];
//echo $country;
//echo $state;
?>
<div id="searchcity"><select name="pre_city" id="pre_city" class="inputfld">
       <option value="">---Select City---</option>
	   <?php 
	   $sql = "select * from city_master where country='".$country."' and state='".$state."'";
	   $result = DB_query($sql,$db);
	   while($city_row = DB_fetch_array($result))
	   {
	   		$p='';
			if($row['id'] == $_POST['pre_city'])
			$p="selected";
	   ?>
	  <option value="<?php echo $city_row['id']; ?>" <?php echo ($row['pre_city']==$city_row['id']?"selected":"") ?>><?php echo $city_row['city']; ?></option>
	   <?php }?>
      </select></div>	  