Search the Community
Showing results for tags 'email confirmation'.
-
Hello all names Beta4, I do apologize in advance if I am posting this in the wrong area. Im still kinda a newbie Anyhow, I want to allow the user to post data such as user name, email, and description on a generic post, this is for a project not commercial use. I want it to display a confimation with the users name, email and description on what he or she posted. Then I want an email sent to their email with the same information that displays the confirmation after they hit the submit button. This is the code I have. Thanks again all! post.php is the name of the file I have given it. <html> <head> <title>Post</title> </head> <body> <h2>Post</h2> <?php $user = $_POST['user']; $email = $_POST['email']; $description = $_POST['description']; $to = $_POST['email']; $subject = 'Confirmation on your recent post at the Trading Post'; $msg = "Your name is $user and your email is $email\n" . "Your post reads: $description\n"; $header = "From: admin@mothinrelay.com"; mail($to, $subject, $msg, $header); echo 'Your post has been submitted.<br />'; echo 'Your user name is ' . $user . '<br />'; echo 'Your email is ' . $email . '<br />'; echo 'You post reads: ' . $description . '<br />'; ?> </body> </html>
-
Hey everyone, This is probably something really simple, but i cant seem to figure out how to do this, i want to create a form that once the person has filled out their info (email, name, age, bio...etc) it will send them an email confirmation with a time stamp of when they entered the info. My question is, how the heck do i get php to take the email address they have submitted and send a confirmation to that email address? Im assuming i need to create a variable for the <input> for the email text area? im not so sure though... thank you