Susan - 2014-03-11

My form is working great! Thank you so much for your form generator!!

I just need to add code to the processor.php page right? That will allow the form to send a confirmation email to the user that the form has been sent?

The only code I could find for this was:

````````````
<?PHP
$email = $_POST["emailaddress"];
$to = "you@youremail.com";
$subject = "New Email Address for Mailing List";
$headers = "From: $email\n";
$message = "A visitor to your site has sent the following email address to be added to your mailing list.\n

Email Address: $email";
$user = "$email";
$usersubject = "Thank You";
$userheaders = "From: you@youremailaddress.com\n";
$usermessage = "Thank you for subscribing to our mailing list.";
mail($to,$subject,$message,$headers);
mail($user,$usersubject,$usermessage,$userheaders);
?>
```````````

Which doesn't seem to work with your code. It doesn't look like I need the top part, but not sure. Any help would greatly be appreciated. I'm just a designer so I barely have any understanding of how this works.

Thank you!

 

Last edit: Susan 2014-03-11