Hello,
I've got a problem with my form.
When I try to submit it, it says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I've checked everything several times but it still doesn't work? And what are these 2 errors?
My form web page: www.handelgate.com/news.html
My processor script (I've used it before and it worked perfectly)
<?PHP
$mailto = "mail@mail.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Newsletter registration";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "
Name: ".$name."
Email: ".$email."
:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location: http://www.handelgate.com/newsletter_thank_you.html");
?>
My form code
<form action="newsletter.php" method="post" name="newsletter" id="newsletter">
<p class="news">Name
<input name="name" type="text" id="name" size="17">
</p>
<p class="news">E-mail
<input name="email" type="text" id="email" size="17">
</p>
<p class="news"> </p>
<p class="news"> <span class="news">
<input type="submit" name="Submit" value=" Submit ">
</span></p>
</form>
The same thing happens with other forms.
Help, please!
Thank you!



Reply With Quote


Bookmarks