I have this form, where after a person submits the form it directs them to a page. Well on that page i somehow need to have the id follow them so that the mysql data according to the id goes with them. Well not sure if i am saying this right.
Below is the form. Somehow i need it so that the header location gets the id at end of it, so that the when they get transferred to the next page, it shows the correct information.
<?
require "commonletter.php";
dbconnect();
if($submit == "Add"){
$query="insert into letter (id, fname, lname, address, town, nick, age, status) values ('$id', '$fname', '$lname', '$address', '$town','$nick','$age','2')";
mysql_query($query) or die( "ERROR: " . mysql_error() . "\n");
header("Location: finishedletter.php");}
?>
<html>
<head>
<title>Submit letter</title>
</head>
<P></P>
<form action="addletter.php" method=post>
<table>
<tr><td>Childs First Name <input type="text" name="fname" size="20" value=""></td></tr>
<tr><td>Childs Last Name <input type="text" name="lname" size="20" value=""></td></tr>
<tr><td>Childs Street Address <input type="text" name="address" size="20" value=""></td></tr>
<tr><td>Childs Town <input type="text" name="town" size="20" value=""></td></tr>
<tr><td>Childs Nick Name <input type="text" name="nick" size="20" value=""></td></tr>
<tr><td>Childs Age <input type="text" name="age" size="2" value=""></td></tr>
<tr><td colspan=2><input type=submit name="submit" value="Add"></td></tr>
</table>
</form>