Friday, July 29, 2005

Magic Quotes and Add Slashes in PHP - Tutorials - Webmaster Stop

Magic Quotes and Add Slashes in PHP - Tutorials - Webmaster Stop: "
function myAddSlashes( $string ) {

if (get_magic_quotes_gpc()==1) {

return ( $string );

} else {

return ( addslashes ( $string ) );

}

}

?>"

No comments: