I have done this tutorial:
http://www.kirupa.com/web/php_contact_form.htm
and it’s easy and i can do it, BUT! for some reason i can’t get the php page to take the information from the contact form, send it to my email, and then go to a seperate confirmation page, i thought i had this figured out but apparently i don’t.
so far i have
<?php
if(isset($_POST['submit'])) {
$to = "tblank@imagetechnologies.com";
$subject = "SUBSCRIBTION NOTIFICATION";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$company_field = $_POST['company'];
$option = $_POST['radio'];
$body = "From: $name_field
E-Mail: $email_field
Company: $company_field
$option
";
mail($to, $subject, $body);
header ("Location: http://www.imagetechnologies.com");
} else {
echo "ERROR: no data sent!";
}
?>
and when i put the information in the form it takes me to the url in the code, but the information does not get mailed to me, i am assuming the header command is a bad thing to put in the middle of the PHP code, but how then do i get it to send me the information and then go to a url of my choice?
any help would be fantastic