Jump to content

Multiple POST values


Sachiano

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.