recently i am developing an web application. i refer to some example of the php code and there is some function which i not very sure the used of it. can anyone of you help to clear my doubts?
//add slashes to the username and md5() the password
$user = addslashes($_POST['username']);
$pass = md5($_POST['password']);
this code is found in the login.php
i would like to know know why we need to add slashes to the username when we login? and what is the use of md5() ?