Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (54 sloc) 1.78 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 `contact_info` WHERE c_id = '$application_no'";
$acquireValues = mysql_query($query);
$values = mysql_fetch_array($acquireValues);
echo '<form action="m400.php" method="POST">
<table>
<tr>
<td>Contact ID:</td><td>'.$values[3].'</td>
</tr>
<tr>
<td>Email ID:</td><td><input type="text" name="email_id" value="'.$values[0].'"/></td>
</tr>
<tr>
<td>Mobile No:</td><td><input type="text" name="mobile_no" value="'.$values[1].'"/></td>
</tr>
<tr>
<td>Other phone No:</td><td><input type="text" name="other_phone" value="'.$values[2].'"/></td>
</tr>
<tr>
<td>Address:</td><td><input type="text" name="address" value="'.$values[4].'"/></td>
</tr>
<tr>
<td>City:</td><td><input type="text" name="city" value="'.$values[5].'"/></td>
</tr>
<tr>
<td>Zip:</td><td><input type="text" name="zip" value="'.$values[6].'"/></td>
</tr>
<tr>
<td>neighbourhood:</td><td><input type="text" name="neighbourhood" value="'.$values[7].'"/></td>
</tr>
<tr>
<tr>
<td>website:</td><td><input type="text" name="website" value="'.$values[8].'"/></td>
</tr>
<tr>
</table>
<input name="application_no" type="hidden" value="'.$application_no.'" />
<input type="submit" value="Submit">
</form>'
?>
</BODY>
</HTML>
Jump to Line
Something went wrong with that request. Please try again.