<?php 
include("../db_connection.php");
?>
    <div class="form-group">
        <label class="col-sm-3 control-label">Locality</label>
        <div class="col-sm-8">
        <select name="locality" class="form-control">
        <option value="">Select Locality</option>
        <?php
        $sqlloc=mysql_query("select * from tbl_locality where cityid='".$_POST['city']."' and status='Enable' order by locality asc");
        while($resloc=mysql_fetch_assoc($sqlloc))
        {
            ?>
            <option value="<?php echo $resloc['locality']?>"><?php echo $resloc['locality']?></option>
            <?php
        }
        ?>   
        </select>
        
            
        </div>
    </div>
