Hi all,
I know this is probably pretty simple, but I am stuck with an e-mail problem.
It's a simple form for people to sign up to a wedding planning page. I ask for their name, e-mail, a date, and a simple password. I want it to send an e-mail to their address (that they input n the form) and a copy to me here, as well as sending them to a thank you page.
Here is what I have so far, can anybody help me?
// Parameters:
// $values - Array object.
// Each field on the Add form is represented as a 'Field name'-'Field value' pair
// $keys - Array object with added record key column values
//** Redirect to another page ****
header("Location: http://foothillsbridalmagazine.com/planner.php");;)
exit();
//** Send email with new data ****
$email="test@test.com";
$subject="Thank you for registering with Foothills Bridal Magazine Wedding Planner";
$message="";
foreach($values as $field=>$value)
$message.= $field." : ".$value."\r\n";
mail($email, $subject, $message);
Thanks in advance!
Bill.