Return to Snippet

Revision: 13160
at April 12, 2009 06:37 by stavelin

Initial Code
//Secure all post variables
function SecurePost($PostVar) {
    return addslashes(htmlspecialchars(mysql_escape_string(stripslashes(strip_tags($PostVar)))));

//Secure all get variables
function SecureGet($GetVar) {
    return addslashes($GetVar);

Initial URL

Initial Description
fond this, and want to try it.

Initial Title
Secure post/get vars

Initial Tags

Initial Language