<?php
include "../db_con.php";

//var_dump($_REQUEST);
 $rs = mysqli_query($con,"select app_id, appstatus, refer_no from applicant_table where app_id='$_REQUEST[id]'");
 $row=mysqli_fetch_array($rs);
?>
<form action="#"  class="feedback3 form-horizontal form-row-seperated">
												<div class="form-group">
													<label class="col-sm-4 control-label">Update Status</label>
													<div class="col-sm-8">
														<!-- <div class="input-group"> -->
															<!-- <span class="input-group-addon">
															<i class="fa fa-user"></i>
															</span> -->
															<input type="hidden" name="refer" value="<?php echo $row["refer_no"];?>" />
															<input type="hidden" name="appid" value="<?php echo $row["app_id"];?>" />

															<select name="vstatus_id" class="form-control" required>
                                  	<!--<option value="">- select -</option>-->
                                <?php    
                                $rs2 = mysqli_query($con,"select * from app_status_table where status=1 order by vstatus_name ASC");
                                while($row2=mysqli_fetch_array($rs2)){ 

                                  
                                        echo "<option value='".$row2["vstatus_id"]."'";

                                        if($row["appstatus"]==$row2["vstatus_id"]) echo " selected";

                                        echo ">".$row2["vstatus_name"]."</option>";

                                         } ?>
                                    </select>
														
													</div>
												</div>
												
												
											
											</form>
