|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
The following line in your code is probably not what you intend. It is syntactically a variable function -
PHP Code:
Quote:
|
|
#3
|
|||
|
|||
|
thanks for the response cwf, so what should be the right script for that can you give me sample script if its ok ..
|
|
#4
|
|||
|
|||
|
type
$_SESSION['Uname'] = $_POST['Uname']; |
|
#5
|
|||
|
|||
|
ok thanks got it and it works
thanks |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > Md5 password error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|