Monthly Archives: February 2015

Sanitising User Form Input Before Processing in PHP

Sanitising user form input before processing the data is an IMPORTANT security step to prevent malicious input wreaking havoc on your program or other unsuspecting users. The function below can take the $_POST array as input and return it sanitised for use. function cleanse($input) { // Clean the input before use to make sure we don’t… Read More »