enemeth Posted March 18, 2013 Share Posted March 18, 2013 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> 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 ( '[email protected]' , 'Another Email address from my website' , $email); might want to include a thank you message too. Link to comment https://forums.phpfreaks.com/topic/275793-php-email/#findComment-1419239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.