How do I include the submitters email in a PHP form?

Solitary_wolf

New Member
I am using a simple HTML form for an event registration and I would like to send a PHP confirmation email to the registrant with the same information that is going to the administrator.Here are the details:\[code\]$emailFromName = $_POST['name'];$emailFrom = $_POST['email'];$emailFromPhone = $_POST['phone'];\[/code\]I would like to use the value from $emailFrom in the following email address to:\[code\]$emailTo = "[email protected]", \"$emailFrom\";\[/code\]edit: Added new configuration:\[code\]$emailHeaders = 'From: "Conference" <[email protected]>' . 'CC: . $emailFrom .';\[/code\]This obviously doesn't work, but you get the idea of what I am trying to. Thanks!
 
Back
Top