<?PHP
$mailto ="exampleemail@example.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);
?>
Can anyone tell me how to use this script properly to combine my contact page and my thank you together
Do i use the above script in my thank you page properties or on my contact page ive looked at the tutorials over and over but i just am not geting it i did this with my script
<?PHP
$mailto = "pdar332010******.ca";
$email = "contact";
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Youve Had A Visitor LSS.CN";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "contactlsscn :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
Is this right or am i way off well those who can help thanx in advance
$mailto ="exampleemail@example.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);
?>
Can anyone tell me how to use this script properly to combine my contact page and my thank you together
Do i use the above script in my thank you page properties or on my contact page ive looked at the tutorials over and over but i just am not geting it i did this with my script
<?PHP
$mailto = "pdar332010******.ca";
$email = "contact";
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Youve Had A Visitor LSS.CN";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "contactlsscn :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
Is this right or am i way off well those who can help thanx in advance
Comment