I am creating a simple contact form on my site. The tutorials seem straight forward and easy and I followed it exactly. I copied and pasted the code on my thank you page but when I fill out the form I get a 404 error messaged.
my site is www.bootcampsbykay.com and any of the "register" text will take you to the form page.
Here's the link that I copy and pasted on my thank you page:
<?PHP
$mailto = "j@email****.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "registration";
$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);
my site is www.bootcampsbykay.com and any of the "register" text will take you to the form page.
Here's the link that I copy and pasted on my thank you page:
<?PHP
$mailto = "j@email****.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "registration";
$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);
Comment