Why is my PHP E-mail form attracting spam?
I have built a website and I want to have an e-mail contact form on the web page, so that someone can send me a message. I am using the code from this website: http://www.w3schools.com/php/php_secure_mail.asp I am using the part that says PHP Stopping E-mail Injections Even though my site gets very few hits per day (like less than 10 visitors) I am finding that I am getting 3 or 4 messages every day from "spammers" who just seem to be sending me random messages that are not related to the subject matter of the website. I am fairly new to all this, so I would like to ask the question: Why is my