I obtained the php script below which is form to email script.
It works by setting up a form in an html web page which asks for the visitors name and email address. Then another .php page is called in which the following script is placed.
The original idea of the .php page was to be used as a "Thank You" page. But I want to elmiinate the "Thank You" part and just take the visitor to another website URL.
I have the script working in it's original intent but I can't figure out how to make it go to the new website after sending me the email with the information the visitor entered.
I would greatly appreciate it if someone can show me how to do this?
Here is the script:
<SCRIPT LANGUAGE="php">
$email = $HTTP_POST_VARS[email];
$mailto = "tbeinc@earthlink.net";
$mailsubj = "Free Air Fare Information Request";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$mailbody .= "$key : $val\n"; }
mail($mailto, $mailsubj, $mailbody, $mailhead);
</SCRIPT>
Thank You,
Tom