form error
Moderator: General Moderators
Re: form error
Take a look at my reply in this other thread today.
Turn on error reporting, var_dump the incoming POST variables and take a close look at them.
Turn on error reporting, var_dump the incoming POST variables and take a close look at them.
Re: form error
How did you arrive at the page that gives you the errors? Did you click a submit button on a form? If you used a form, please share the code for the form.
Edit: This post was recovered from search engine cache.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 12:37 pm, edited 1 time in total.
Re: form error
This is a quick reply to this code, then I will read your lengthy post.
Edit: This post was recovered from search engine cache.
The form is missing a method attribute.wero86 wrote:Code: Select all
<form action="Test/sendinfo.php" name="Contact" id="Contact">
Code: Select all
<form method="post" action="Test/sendinfo.php" name="Contact" id="Contact">
Last edited by McInfo on Tue Jun 15, 2010 12:39 pm, edited 2 times in total.
Re: form error
tried doing as you suggested didnt have any affect
Re: form error
Changing the method to POST should have cured these errors:
To fix the other error, I think you need to change some of the $email_from variables to $email_to.
Edit: This post was recovered from search engine cache.
Do you still see those errors?Notice: Undefined index: name in \\[...]\htdocs\sendinfo.php on line 3
Notice: Undefined index: email in \\[...]\htdocs\sendinfo.php on line 4
Notice: Undefined index: message in \\[...]\htdocs\sendinfo.php on line 5
To fix the other error, I think you need to change some of the $email_from variables to $email_to.
Code: Select all
$headers =
"From: $email_to .\n";
"Reply-To: $email_from .\n";
ini_set("sendmail_from", $email_to);
$sent = mail($email_to, $email_subject, $message, $headers, "-f" . $email_to);