Thread: php login
View Single Post
Old 05-05-2008, 16:41   #6 (permalink)
RaelRode
Designers are strange :)
 
RaelRode's Avatar
 
Join Date: Jan 2007
Location: Shrewsbury, UK
Posts: 1,766
Send a message via ICQ to RaelRode Send a message via AIM to RaelRode Send a message via MSN to RaelRode Send a message via Yahoo to RaelRode Send a message via Skype™ to RaelRode
I would do it this way...

PHP Code:
$user stripslashes($_POST['user']); 
$pass stripslashes($_POST['user']); 
$pass md5($pass);
$_SESSION['username'] = $user
$_SESSION['password'] = $pass
__________________
[ Programmers Voice - Blog about the internet, code and development ]
  Reply With Quote