1.

Solve : Urgent help needed with php form please!?

Answer»

Hi guys.. I have a website that has a box where people can submit their email addresses on there.

I got the form working fine using php and the email addresses were coming into my email address as they should.

Now people are visiting the site, but I have realised that the form is not working anymore! When they submit is says "FAILURE". I'm not sure that I have CHANGED anything so I don't know what is wrong.

Here is the code:

"if ($_POST["email"]<>'') {
$email_from = '[email protected]';
$ToEmail = '[email protected]';
$EmailSubject = 'NEW Investor';
$mailheader = "From: ".$_POST["email"]."\r\n";


$MESSAGE_BODY .= $_POST["email"];

mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
?>
<font face="arial" size="2">Your have registered successfully - thank you! We'll be in touch when the bar on the right reaches the top.<p></font>
} else {
?>

<font face="arial" size="2">I'm interested and would potentially like to be INVOLVED. Here's my email address:</font>






};
?>
"

If anyone could tell me why it's not working that would be amazing!! Thank you!!

(only think I can think of that I changed is that I got an email address with the host and they had a box when you set up your email that said:
"Check this box to set the new email as default "From" address for emails sent from scripts in your hosting account" which I did. Could this be the problem? I deleted the mail box but the form still says "failure".)I can recommend to use php forms software for easy and quick form creation


Discussion

No Comment Found