<?php
include('connect.php');
$id=$_POST['updatehidden'];

$sql="select * from normalmember where id='$id'";

$result=mysqli_query($con,$sql);

while($row=mysqli_fetch_array($result))
{
	echo '
	<html>
	<head>
	<link rel="stylesheet" href="bootstrap.min.css">
	</head>
	<body>
	<div class="container">
	<div class="row">
	<form action="finalupdate.php" method="post">
	id<input type="text" class="form-control" name=id value="'.$row['id'].'">
	First Name<input type="text" name=fname class="form-control" value="'.$row['fname'].'">
	Middle Name<input type="text" name=mname class="form-control" value="'.$row['mname'].'">
	Last Name<input type="text" name=lname class="form-control" value="'.$row['lname'].'">
	Email <input type="text" name="email" class="form-control" value="'.$row['email'].'">
	Address<input type="text" name="address" class="form-control" value="'.$row['address'].'">
	Contact<input type="text" name="contact" class="form-control" value="'.$row['contact'].'">
	Age<input type="text" name="age" class="form-control" value="'.$row['age'].'">
	Date Of Joining<input type="text" name="doj" class="form-control" value="'.$row['doj'].'"><br>
	<input type="hidden" name="finalhidden" value="'.$row['id'].'">
	<input type="submit" name=send value="Submit" class ="btn btn-lg btn primary">
	</form>
	</div>
	</div>
	</body></html>';
	
}	
?>