Tutorial Login Function

These functions will log in a user based on a username and password being matched in a MySQL database. // function to escape data and strip ...

These functions will log in a user based on a username and password being matched in a MySQL database.
// function to escape data and strip tags
function safestrip($string){
$string = strip_tags($string);
$string = mysql_real_escape_string($string);
return $string;
}

//function to show any messages
function messages() {
$message = '';
if($_SESSION['success']

Hot in Week

Popular

Archive

item