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

//var_dump($_REQUEST);
 $rs = mysqli_query($con,"select app_id, appstatus, v_uid 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="v_uid" value="<?php echo $row["v_uid"];?>" />
															<input type="hidden" name="appid" value="<?php echo $row["app_id"];?>" />



								 
															<!-- <select name="v_uid" class="form-control" style='display: none;'>

																<option id="demo6"></option>
																
															</select> -->

															<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>
												</div>
												
												
											
											</form>
