<?php  
error_reporting(0);
include('../common/connect.php');




$sid=$_POST['sid'];
$sql=mysql_query("SELECT * FROM  `step1_perosonal` WHERE  `sid` =$sid") or die(mysql_error());	
$sql1 = mysql_fetch_assoc($sql);
$Stuname=$sql1['firstname'].'&nbsp;'.$sql1['middlename'].'&nbsp;'.$sql1['lastname'];
$course=$sql1['program'];


?>
<div>		<div class="col-md-12" style="padding-top:10px">
				<div class="col-md-4">Enter Student Name</div><div class="col-md-4"><input type="text" class="form-control" required name="student_name" placeholder="Enter Student Name" value="<?php echo $Stuname; ?>"></div>
						</div>
						<div class="col-md-12" style="padding-top:10px">
				<div class="col-md-4">Enter mobile No.</div><div class="col-md-4"><input type="text" class="form-control" pattern=".{10,10}" title="Hello" required name="mobile"  placeholder="Enter Mobile No"  value=""></div>
						</div>
						<div class="col-md-12" style="padding-top:10px">
				<div class="col-md-4">Enter Father's Name</div><div class="col-md-4"><input type="text" class="form-control" required name="father_name"  placeholder="Enter Father's Name"  value="<?php echo $sql1['father_name']; ?>"></div>
						</div>
						
						
						<div class="col-md-12" style="padding-top:10px">
				<div class="col-md-4">Select Course</div><div class="col-md-4">
				<select class="form-control" id="source" name="course">
				<option value="">SELECT COURSE</option>		
				<?php
				$GetCourse = mysql_query("SELECT * FROM `sgvu_courses` ORDER BY `sgvu_courses`.`coursename` ASC");
				while($GetCourse1 = mysql_fetch_assoc($GetCourse))
				{
				?>
				<option value="<?php echo $GetCourse1['course_id']; ?>"
				<?php
				if($GetCourse1['course_id']==$course)
				{
				echo 'selected="selected"';
				}
				?>
				
				 ><?php echo $GetCourse1['coursename']; ?></option>
				<?php
				}
				?>
						</select></div>
						</div>
						</div>


