Jump to content

Help! Only receiving message in contact page.


Angus

Recommended Posts

I got my contact form to work but I cannot for the life of me figure out why my $message is working and not my $name or $email. Here is my code:

My HTML

0rhWwVD.png

My PHP:

RYlhDuK.png

My details and message sent on my website:

L0FzCMh.png

My message received in my email:

pmJyWnd.png

 

Link to comment
Share on other sites

The code you've posted here does not contain any error that would cause your described problem. 

However, I took a guess at your website URL and looked at the actual page and can say that the code you posted here is not the same as what is on the actual page.  There is a difference in your <input> tags.  If you look at them and identify what's missing you'll solve your issue.

If you're still having trouble, make sure you post the actual code you are running on the site next time, and as text using a code block (the <> icon here) rather than as screenshots.

 

  • Like 1
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.