I'm getting no where fast....below is the code i'm using now. It posts to the DB fine, but will not redirect. If I add the line: header("Location: thankyou.php"); anywhere PHP errors out talking about the header. =(
<?php
$hostname="test.net";
$username="test";
$password="test";
$dbname="ifdcustomers";
$usertable="CustomerInfo";
$EMAIL = "EMAIL";
$skillONE = "skillONE";
$con = mysql_connect("test.net","test","test");
if (!$con)
{
die('Could not connect: ' . mysql_error()); }
mysql_select_db("ifdcustomers", $con);
$sql="INSERT INTO CustomerInfo (EMAIL, skillONE)
VALUES
('$_POST','$_POST[skillONE]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
mysql_close($con)
?>