Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (41 sloc) 1.28 KB
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("openspace", $con);
$application_no = $_POST['c_id'];
$query = "SELECT * FROM `education_work_info` WHERE e_id = '$application_no'";
$acquireValues = mysql_query($query);
$values = mysql_fetch_array($acquireValues);
echo '<form action="m500.php" method="POST">
<table>
<tr>
<td>ID:</td><td>'.$values[2].'</td>
</tr>
<tr>
<td>High School:</td><td><input type="text" name="high_school" value="'.$values[0].'"/></td>
</tr>
<tr>
<td>College:</td><td><input type="text" name="college" value="'.$values[1].'"/></td>
</tr>
<tr>
<td>Employer:</td><td><input type="text" name="employer" value="'.$values[3].'"/></td>
</tr>
<tr>
<td>Other_details:</td><td><input type="text" name="other_details" value="'.$values[4].'"/></td>
</tr>
<tr>
</table>
<input name="application_no" type="hidden" value="'.$application_no.'" />
<input type="submit" value="Submit">
</form>'
?>
</BODY>
</HTML>