i built my form and make my thank you page but when i go to edit the two lines they're not there
web form
Collapse
X
-
Tags: None
-
-
Re: web form
Hi there
You have to add the following script and then change blue lines according to your address and subject.
Copy the following script and paste it in "Between Head Tag"
<?PHP
$mailto = "youremail@yourdomain.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
change the part in blue of the above code with your actual email address, and the actual Email Subject.
Thats it. I hope u will get it fixed
-
Comment