Thanks for you guys quick reply, but im now totally confused.
Here is my code from my two pages:
First Page
<?php
session_start();
if($REQUEST["submit"])
{
$cc_fname = $REQUEST["fname"];
$cc_lname = $REQUEST["lname"];
$cc_company = $REQUEST["company"];
$cc_phno = $REQUEST["phno"];
$cc_faxno = $REQUEST["faxno"];
$cc_mobno = $REQUEST["mobno"];
$cc_email = $REQUEST["email"];
$cm_method = $_REQUEST["method"];
$cl_location = $_REQUEST["location"];
//$ccom_company = $REQUEST["briefdescription"];
//$ccom_location = $REQUEST["briefdescription"];
$cn_nature = $_REQUEST["nature"];
$ci_briefdesc = $REQUEST["briefdescription"];
$ci_fulldesc = $REQUEST["fulldescription"];
$cr_fname = $REQUEST["fnameInput"];
$cr_lname = $REQUEST["lnameInput"];
$ci_doc = $_REQUEST["attach1"];
$error = $_SESSION['mysql_error();'];
$link = mysql_connect ('localhost',"root","wrong password")
or header("Location: http://localhost/cd/complaint_management_system_error.php?");
$dblink = mysql_select_db ('complaints desk test',$link)
or die ("Could not select database".mysql_error());
$sql ="INSERT INTO Complainant_Contact(cc_fname,cc_lname,cc_company, cc_phno, cc_faxno, cc_mobno, cc_email)VALUES('$cc_fname','$cc_lname','$cc_company','$cc_phno','$cc_faxno','$cc_mobno', '$cc_email')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$sql ="INSERT INTO Complaint_Method(cm_method)VALUES('$cm_method')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$sql ="INSERT INTO Complaint_Location(cl_location)VALUES('$cl_location')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$sql ="INSERT INTO Complaint_Nature(cn_type)VALUES('$cn_nature')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$sql ="INSERT INTO Complaint_Recorder(cr_fname,cr_lname)VALUES('$cr_fname','$cr_lname')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$sql ="INSERT INTO Complaint_Information(ci_daterec,ci_briefdesc,ci_fulldesc,ci_doc)VALUES(current_timestamp(),'$ci_briefdesc','$ci_fulldesc','$ci_doc')";
$rs = mysql_query($sql) or die("Query error:$sql".mysql_error());
$row = mysql_fetch_assoc($rs);
?>
Second Page
<? session_start(); ?>
Various HTML Code
<?php echo $error; ?>
If anyone can help by finding the best soloution to my problem it will be great!