enemeth Posted March 18, 2013 Share Posted March 18, 2013 (edited) hello all, i have a simple, im sure to you guys, problem that i just cant find the answer too..... i have this code below on my page and i need a small code that will email me the email address... all codes i see is with address...names....messages.... i only need the email! thanks a bunch;) Elaine <form method="POST" action="FormToEmail.php"> <p> <label for='email'>Email Address:</label> <br> <input type="text" name="email"> <br> </p> <input type="submit" value="Submit"><br> </form> Edited March 18, 2013 by enemeth Quote Link to comment https://forums.phpfreaks.com/topic/275793-php-email/ Share on other sites More sharing options...
davidannis Posted March 18, 2013 Share Posted March 18, 2013 $email=htmlentities($_POST['email']); mail ( 'youremail@yourdomain.com' , 'Another Email address from my website' , $email); might want to include a thank you message too. Quote Link to comment https://forums.phpfreaks.com/topic/275793-php-email/#findComment-1419239 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.