Prevent multiple form submission

Are you tired of people submitting the same information via your online forms multiple times and cluttering up your database and mail? If yes, this PHP snippet could be your solution. With this function (and native PHP session support) it’s possible to prevent a multiple form submission while using some server side form field validation. The script checks the unique string from the current submission against the post before and will stop if the submitted form or string is the same as before. Continue reading Prevent multiple form submission

PHP mail attachment script

This custom function or PHP mail attachment script is able to send a plain text email message together with a single attachment file. The attachment file has to be uploaded first or you can use a file which already exists on your web server. There are much better and more advanced PHP scripts on the Internet, but I hope this example will help you to understand, how it’s possible to send an email message plus attachment by using some PHP code. Continue reading PHP mail attachment script