So this is a pretty simple problem. This code has worked for me before on other sites but all of a sudden it’s stopped working. I’m drawing the information through the form fields via global variables ( $_POST ) and that seems to work okay. When I input the information into the actual body of the email, that’s where my problem occurs. The email will send but none of the information will be in it. Dreamweaver says my syntax is fine but there’s an obvious problem because the emails are blank. Here’s the code:
It still sends a blank email. It says the email is sent by a long name .secureserver.net I don’t know if that means anything to anybody. I’m usually more of a designer but I have a base in PHP and this is killing me :sick:. The site is supposed to be live by the end of the week, I’m thinking of falling back on a WordPress plugin for the contact page until I can figure out what’s wrong with the site. Thank you for all the help everybody
Unless you provide us with more information such as the script that contains the actual contact form, the website in question and even your web host, there is not much else we can do.
I used your script with hard-coded variables for the name, email, subject and it sent fine, so the problem is obviously elsewhere.
If you are dead set on a WP plugin for your contact form, ensure it does some type of data sanitation since your script has none so far.