PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old May 3rd, 2007, 11:34 PM
lordchriz lordchriz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Dumaguete City, Oriental Negros,Philippines
Posts: 26 lordchriz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 55 m 55 sec
Reputation Power: 0
Send a message via Yahoo to lordchriz
Md5 password error

hello

can you help solve this error below and md5

thanks

Code:
<?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>



error:

Fatal error: Call to undefined function 6a204bd89f3c8348afd5c77c717a097a() in F:\server\htdocs\pword3char.php on line 21
__________________
im lve web designing

Reply With Quote
  #2  
Old May 3rd, 2007, 11:44 PM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 353 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 44 m 58 sec
Reputation Power: 2
The following line in your code is probably not what you intend. It is syntactically a variable function -
PHP Code:
 $_SESSION['Uname'] = $md5pass ($_POST['Uname']); 
Quote:
Variable functions
PHP supports the concept of variable functions. This means that if a variable name has parentheses appended to it, PHP will look for a function with the same name as whatever the variable evaluates to, and will attempt to execute it.

Reply With Quote
  #3  
Old May 4th, 2007, 12:06 AM
lordchriz lordchriz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Dumaguete City, Oriental Negros,Philippines
Posts: 26 lordchriz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 55 m 55 sec
Reputation Power: 0
Send a message via Yahoo to lordchriz
thanks for the response cwf, so what should be the right script for that can you give me sample script if its ok ..

Reply With Quote
  #4  
Old May 4th, 2007, 01:24 AM
sajan sajan is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 7 sajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 36 m 32 sec
Reputation Power: 0
type

$_SESSION['Uname'] = $_POST['Uname'];

Reply With Quote
  #5  
Old May 4th, 2007, 02:18 AM
lordchriz lordchriz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Dumaguete City, Oriental Negros,Philippines
Posts: 26 lordchriz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 55 m 55 sec
Reputation Power: 0
Send a message via Yahoo to lordchriz
ok thanks got it and it works hey do u have any idea on making a admin script in which it alows to access everything ...


thanks

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Md5 password error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway