I've been staring at this code for far too long, so I'm hoping someone here can help me out with what I'm missing that would be giving me this error. Thanks in advance!
<?
$id = $_REQUEST['id'];
$date = date(Ymd);
$agent = $_REQUEST['agent'];
$aemail = $_REQUEST['aemail'];
$prod = $_REQUEST['prod'];
$acctemail = $_REQUEST['acctemail'];
$custname = $_REQUEST['custname'];
$custemail = $_REQUEST['custemail'];
$custphone = $_REQUEST['custphone'];
$custreq = $_REQUEST['custreq'];
$resexp = $_REQUEST['resexp'];
$authcc = $_REQUEST['authcc'];
$mgr = $_REQUEST['mgr'];
$completed = $_REQUEST['completed'];
$comdate = $_REQUEST['comdate'];
$resolution = $_REQUEST['resolution'];
$dbserver = "localhost";
$dbuser = "cccustom";
$dbpass = "xxxxx";
$db = "cccustom";
$table = "legacy";
$link = mysql_connect($dbserver,$dbuser,$dbpass);
if (!$link) {
die("Couldn't Connect");
}
mysql_select_db($db) or die("Unable to Open " . mysql_error());
$query = "insert into $table (id, date, agent, aemail, prod, acctemail, custname, custemail, custphone, custreq, resexp, authcc, mgr, completed, comdate, resolution) values( NULL, '$date', '$agent', '$aemail', '$prod', '$acctemail', '$custname', '$custphone', '$custreq', '$expres', '$authcc', '$mgr', '$completed', '$comdate', '$resolution' )";
mysql_query($query,$link) or die("Unable to Open " . mysql_error());;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "chris.xxxx@citrixonline.com", "Custom Request Form Submission",
$message, "From: $email" );
header( "Location: http://custcare/submitted.php" );
?>