Hi all
I am new with PHP and this simple thing has been driving me nuts. I finally got my contact form to work successfully thanks to tutorials around the internet.
But I don't know what code to use so that I may view the name entered in the name field on the form, or have the email displayed how I would like it.
Right now when I get the email, the from address is the email the person types in. OK. The message shows up just as an ordinary message without anything else... that works, but what I would like is for the email to arrive in this format:
Name: (name)
Email: (email address)
Message: (message)
right now only the message shows up in the email body. I would like to see everything in the email body. the name doesn't show up anywhere.
I have tried a few different things but then I get error 500 when I submit the form. I know I am missing something simple.
I have attached the code I am using. Wasn't able to copy and paste.
Please help!
sendmail.php