Hello.
I cannot figure out how to redirect my form to another page.
Please check out and click on the on-line quote request on the left hand side. When you press submit button, nothing happens. How do I program my php file to redirect the user to the "thank you for submiting the form" page.
Here is my script so far:
<?
/* subject */
$subject = "QUOTE REQUEST";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: $name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: $name <$email>\n"; // Return path for errors
/* recipients */
$recipient = "ivan@foundation-one.net";
/* and now mail it */
mail($recipient, $subject, "Hello Ivan,\nMy name is $name. I'm writing to you on behalf of $company.\nMy phone number is $phone.\nMy e-mail is $email.\nExisting website - $web. The URL is $webaddy.\nBusiness description: $biz\nOn-line marketing goals - $goals\nWe are looking for the following - $needs.\nE-commerce - $ecom.\nProduct gallery - $prodgal.\nNumber of products is $prodnum.\nMy favorite sites are $site and $site1.\nOur budget is $budget.\nMy comments: $comm.\nThis is how we heard about you: $market.\nMy graphic design needs are as follows: $printq.", $headers);
// Replay
// ---------------------------
/* subject */
$subject = "FOUNDATION ONE DESIGNS,LLC";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: Ivan <ivan@foundation-one.net>\n";
$headers .= "X-Sender: <ivan@foundation-one.net>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: Foundation One Designs,LLC <ivan@foundation-one.net>\n"; // Return path for errors
/* recipients */
$recipient = $email;
/* message */
$message = "Dear $name,\nThank you for filling out the on-line quote request form. We will review the information you sumbitted within the next two business days, and contact you with an estimate for your project. Thank you for visiting Foundation One Designs and have a great day.\n\nBest regards,\nIvan Annikov\nNew Media Architect\n\nFoundation One Designs, LLC\n\n
mail($recipient, $subject, $message, $headers);
?>
I cannot figure out how to redirect my form to another page.
Please check out and click on the on-line quote request on the left hand side. When you press submit button, nothing happens. How do I program my php file to redirect the user to the "thank you for submiting the form" page.
Here is my script so far:
<?
/* subject */
$subject = "QUOTE REQUEST";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: $name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: $name <$email>\n"; // Return path for errors
/* recipients */
$recipient = "ivan@foundation-one.net";
/* and now mail it */
mail($recipient, $subject, "Hello Ivan,\nMy name is $name. I'm writing to you on behalf of $company.\nMy phone number is $phone.\nMy e-mail is $email.\nExisting website - $web. The URL is $webaddy.\nBusiness description: $biz\nOn-line marketing goals - $goals\nWe are looking for the following - $needs.\nE-commerce - $ecom.\nProduct gallery - $prodgal.\nNumber of products is $prodnum.\nMy favorite sites are $site and $site1.\nOur budget is $budget.\nMy comments: $comm.\nThis is how we heard about you: $market.\nMy graphic design needs are as follows: $printq.", $headers);
// Replay
// ---------------------------
/* subject */
$subject = "FOUNDATION ONE DESIGNS,LLC";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: Ivan <ivan@foundation-one.net>\n";
$headers .= "X-Sender: <ivan@foundation-one.net>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: Foundation One Designs,LLC <ivan@foundation-one.net>\n"; // Return path for errors
/* recipients */
$recipient = $email;
/* message */
$message = "Dear $name,\nThank you for filling out the on-line quote request form. We will review the information you sumbitted within the next two business days, and contact you with an estimate for your project. Thank you for visiting Foundation One Designs and have a great day.\n\nBest regards,\nIvan Annikov\nNew Media Architect\n\nFoundation One Designs, LLC\n\n
mail($recipient, $subject, $message, $headers);
?>