I updated my website with a new contact form and for some reason when I click on the SUBMIT button, it doesn't work. I have had several people try with no luck with the exception of the creator of the contact page who is stumped as well. If anyone has any suggestions, I would greatly appreciate it. I am VERY new to coding so please keep that in mind when reading this and if you respond :) Thanks!!
Here is what I have for my contact.php file....
[code=php]<?php
$name = $HTTP_POST_VARS['Name'];
$email = $HTTP_POST_VARS['Email'];
$message = $HTTP_POST_VARS['Message'];
$phone = $HTTP_POST_VARS['Phone'];
$message = stripslashes($m essage);
$sendTo = "I inserted my email address here";
$subject = "Message from Web Site";
$msg_body = "Name: $name\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Comments: $message\n";
$msg_body .= "Phone: $phone\n";
$header_info = "From: ".$name." <".$email.">" ;
mail($sendTo, $subject, $msg_body, $header_info);
?>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Here is what I have for my contact.php file....
[code=php]<?php
$name = $HTTP_POST_VARS['Name'];
$email = $HTTP_POST_VARS['Email'];
$message = $HTTP_POST_VARS['Message'];
$phone = $HTTP_POST_VARS['Phone'];
$message = stripslashes($m essage);
$sendTo = "I inserted my email address here";
$subject = "Message from Web Site";
$msg_body = "Name: $name\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Comments: $message\n";
$msg_body .= "Phone: $phone\n";
$header_info = "From: ".$name." <".$email.">" ;
mail($sendTo, $subject, $msg_body, $header_info);
?>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Comment