md5 password error

This is a discussion on "md5 password error" within the PHP Forum section. This forum, and the thread "md5 password error are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 4th, 2007, 03:48
Up'n'Coming Member
Join Date: Jul 2006
Location: manila
Age: 28
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
md5 password error

hello

can you help solve this error below and md5

thanks

Code: Select all
<?php
ob_start();
echo "<center>";
//see if action=check

if($_GET['action'] == 'check')
{

        if(strlen($_POST['Pword']) <= 6){
                print "<p><b>Your password must be greater than 6 characters</b><br>";
                }
                else{
                
             //$md5pass = md5($_POST['Pword']);
         $md5pass = md5($_POST['Pword']);
        $_SESSION['Uname'] = $md5pass ($_POST['Uname']);

        }        
        
$result = mysql_query("SELECT * FROM simply_ok WHERE Uname='{$_POST['Uname']}'") 
or die(mysql_error()); 
       
}

?>

<form method="POST" action="?action=check">
Desired User Name<input name="Uname" type="text" id="Uname" size="30" maxlength="25" />
Desired Password<input name="Pword" type="password" id="Pword" size="30" maxlength="25" />
I aggree to the Terms & Conditions <input name="terms" type="checkbox" value="on" />
<input type="submit" name="submit" value="Join Now" />
</form>

this is the error:

Fatal error: Call to undefined function 6a204bd89f3c8348afd5c77c717a097a() in F:\server\htdocs\pword3char.php on line 21
Reply With Quote

  #2 (permalink)  
Old May 8th, 2007, 12:27
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
  #3 (permalink)  
Old May 9th, 2007, 02:29
Up'n'Coming Member
Join Date: Jul 2006
Location: manila
Age: 28
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Re: md5 password error

thanks it really help and it works ..
Reply With Quote
Reply

Tags
md5 password

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot password and Change password PHP script Chono PHP Forum 4 May 16th, 2008 09:13
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
Error 500 - Internal server error JasonStanley PHP Forum 3 Apr 23rd, 2007 17:56
PHP Forgot password script error eddie PHP Forum 4 Mar 4th, 2007 15:43


All times are GMT. The time now is 11:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43