Sachiano Posted August 30, 2010 Share Posted August 30, 2010 I'm sorting out a simple PHP email form, and I would like, when the email arrives in my inbox, for it to display both the email of the sender AND their name as specified in the form on my website. So far I have $from = $_POST['from']; with the 'from' being the client's email address. I would also like their name ('name') to show up next to their email in the header. I have tried such things like $from = $_POST['from' . 'name']; //or $from = $_POST['from']; $_POST['name']; and a few more, but I'm terrible at PHP coding in general. I have searched, but I really am at a loss as to what to search for. Can someone please give me an idea as to what I should do? Thanks, Sacha. Link to comment https://forums.phpfreaks.com/topic/212073-multiple-post-values/ Share on other sites More sharing options...
Pikachu2000 Posted August 30, 2010 Share Posted August 30, 2010 This should work for you. $from = $_POST['from'] . ' ' . $_POST['name']; Link to comment https://forums.phpfreaks.com/topic/212073-multiple-post-values/#findComment-1105207 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.