I have a php form from which the user fills out their name and address and clicks "Submit".
The form goes to a page that stores the data in a mySQL database, then, using hidden fields, populates another form and actives with a javascript onLoad=submit() to send the information on to the final destination.
I cannot control or edit the final destinations web page, which is why the interim page is needed.
What I would like is for the user to fill out the form, and upon submission have the data recorded into the database and have the data passed on in a "form like way" on to the final destination BY THE SERVER, not by the use of a hidden form page that auto submits.
Any suggestions?
Here is the interim page's code below:
<?
$link = @mysql_connect($db_host_name, $db_name, $the_decoded_password) or die;
@mysql_select_db($db_name) or die;
$query = "INSERT INTO web_link VALUES ('', '$a', '$b', '$c','$d', '$e', '$f', '$g', '$h')";
$result = @($query) or die;
?>
<html>
<head>
</head>
<body onLoad="document.contactme.submit();">
<form name="contactme" method="post" action="http://www.test.com/cgi/storethisdata" >
print "<input type=\"hidden\" name=\"first_name\" value=\"$first_name\"><br>";
print "<input type=\"hidden\" name=\"last_name\" value=\"$last_name\"><br>";
print "<input type=\"hidden\" name=\"email\" value=\"$email\"><p>";
print "<input type=\"hidden\" name=\"phone\" value=\"$phone\"><p>";
?>
</form>
</body>
</html>