lolwut
22-08-2007, 11:05 AM
iyaar,
I coded this PHP script recently and there's a error saying "Password was incorrect." even when it is correct.
Link: http://edd-dev.awardspace.com/php/index.php
Page code:
<?php
$pass1 == 'admin';//Login pass.
if(!$_POST['submit']){
echo("
<form action=\"index.php\" method=\"POST\">
PASSWORD: <input type=\"text\" name=\"password\">
<br />
<input type=\"submit\" name=\"submit\" value=\"LOGIN\">
</form>
");
}else{
$password == $_POST['password'];
if($password == $pass1){
echo("The password was correct.");
}else{
echo("The password was incorrect.");
}
}
?>
I dunno what's wrong so any help appreciated! (:
I coded this PHP script recently and there's a error saying "Password was incorrect." even when it is correct.
Link: http://edd-dev.awardspace.com/php/index.php
Page code:
<?php
$pass1 == 'admin';//Login pass.
if(!$_POST['submit']){
echo("
<form action=\"index.php\" method=\"POST\">
PASSWORD: <input type=\"text\" name=\"password\">
<br />
<input type=\"submit\" name=\"submit\" value=\"LOGIN\">
</form>
");
}else{
$password == $_POST['password'];
if($password == $pass1){
echo("The password was correct.");
}else{
echo("The password was incorrect.");
}
}
?>
I dunno what's wrong so any help appreciated! (: