I have a site that I'm doing that houses some of their data and uses an outside service to process some other parts of their data.
Their product registration page points at some totally un related server like:
<form action="http://someother.server.com/cgi-bin/">
What I want to do is capture some of the fields from the form into our database, then fire the whole data set off to their outside agency's server. Capturing the fields is easy, I have:
if($submit){
$db = mysql_connect("localhost", "user", "pass");
mysql_select_db("mydb", $db);
$query = "insert into contact (salutation, fname, lname, email, entryPoint) values
('$title', '$first_name', '$last_name', '$email', '$entryPoint') ";
mysql_query($query, $db);
header ("Location: http://someother.server.com/cgi/etc");
exit;
}
What am I doing wrong?
TIA,
Tom