View Single Post
  #2 (permalink)  
Old May 8th, 2007, 12:27
Accurax Accurax is offline
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: md5 password error

Quote:
$md5pass = md5($_POST['Pword']);
$_SESSION['Uname'] = $md5pass ($_POST['Uname']);


What are you trying to do there? ... I might be missing something here,
but that doesnt look right to me.

you set $md5pass to $_POST['pword']

and then you try to use $md5pass(); ......

Are you trying to make the session == to the md5 hash of the password?

if so, all you need is:

Code: Select all
         $md5pass = md5($_POST['Pword']);
        $_SESSION['Uname'] = $md5pass;
Reply With Quote