I've seen a couple of examples on the PHP site and elsewhere, using fsockopen(), that illustrate how to POST variables to a URL, wait for a response, and then continue the original script. Is there a way to POST the information to the second site and remain at the second site as if a Submit button had been clicked? Is it possible to do this with a header() or some other command?
ANY help or suggestions would be appreciated.
The logic for Page 1 follows:
Code: Select all
<?
if ($Submit) {
// VERIFY SUBMITTED INFORMATION
if (!$var1) {$error = "var1 is required";}
if (!$var2) {$error = "var2 is required";}
else {
// POST THE VERIFIED VARIABLES TO FORM 2
}
}
?>
<!--HTML FOR PAGE CONTAINING FORM WHICH SUBMITS BACK TO ITSELF-->