PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi guys I am very new to PHP so please excuse my ignorance. I followed a tutorial on creating a simple enquiry form using php for my portfolio site and am having a slight problem.
The email is sent through without any problems to my inbox but all the information I have placed in the text fields (name,phone,email,comments) does not show at all, neither does the email address show in the from area (it just says unknown user). I have pasted the code below and would appreciate any help I can get. I have created the form in dreamweaver cs5 and have validated it using the validate form tool from within the software.
Thanks for your reply Califdon i certainly appreciate it,
If you mean change the name in the form i have created to match the varialbles in the code they already match, if that is what you mean if not can you please explain further, again excuse my ignorance
jabbs72 wrote:Thanks for your reply Califdon i certainly appreciate it,
If you mean change the name in the form i have created to match the varialbles in the code they already match, if that is what you mean if not can you please explain further, again excuse my ignorance
No, look at your code. You assign the values you received from the form to 4 variables:
But when you want to use those values in the email, you are using different names, so of course, the code has no clue as to what values you want to use: