How do I insert this in the html? Do I insert it in "before tag", "inside body tag" or "between head tag"?
<HTML>
<HEAD>
<TITLE>Succesfully processed your email</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your email!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "lct@lctfinejewelers.com;
$mailsubj = "Email";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HEAD>
I can't figure this out because there is the <HTML> <HEAD> at the top and </BODY> <HEAD> at the end of this insert and it seems that would be aduplication of the original html and it may cause confusion. I have also inserted the statcount in between the body tag already. Please give me instruction. Thanks.
<HTML>
<HEAD>
<TITLE>Succesfully processed your email</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your email!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "lct@lctfinejewelers.com;
$mailsubj = "Email";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HEAD>
I can't figure this out because there is the <HTML> <HEAD> at the top and </BODY> <HEAD> at the end of this insert and it seems that would be aduplication of the original html and it may cause confusion. I have also inserted the statcount in between the body tag already. Please give me instruction. Thanks.
Comment