Form can generate spam if they’re not well programmed. A method to block spam is by adding a captcha field. This will generate a (image) code and add it to the session. Every page load the code will be renewed. Visitors must enter the code inside an input field and the submit php code must check the user’s input with the session value. Continue reading