Hi,
Im developing an online recruitment website. Applicants need to fill in a C.V. comprises of many forms over many pages - ie, they fill in their personal details, then click 'submit and continue', to get to the next page where they fill in their academic qualifications, etc.
My problem is that only data from the first page goes into my database, where I use one big table for all the information about each applicant. (using inset into). The following pages use update, where User_Name = '$User_Name. Im tryin to get User_Name on each page using the $User_Name = $HTTP_POST_VARS["User_Name"], and then declaring the variable User_Name in a hidden text field on each page. However, I am not quite sure how the HTTP_POST_VARS works...
please can anyone help me?
<?
if($Submitone){
$db = mysql_connect("mysql.cs.nott.ac.uk", "msh99d", XXX);
mysql_select_db("msh99d");
$q = "update Applicant set EmailAddress = '$EmailAddress', FirstName = '$FirstName', Lastname = '$LastName', Address1 = '$Address1', Address2 = '$Address2', Postcode = '$Postcode', PhoneNo = '$PhoneNo', FaxNo = '$FaxNo', DateOfBirth = '$DateOfBirth', Gender = '$Gender'
where UserName = '$User_Name'";
$result = mysql_query($q);
$User_Name = $HTTP_POST_VARS["User_Name"];
}
?>
Thanx,
Mets