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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.