- Joined
- Feb 15, 2013
- Messages
- 136
- Reaction score
- 59
Hello, I am sorry to bump such a old topic but I have a few problems with this script.
When I open the link, I start with 3 errors on top
Notice: Undefined index: account in C:\wamp\www\shop\login.php on line 31
Notice: Undefined index: password in C:\wamp\www\shop\login.php on line 32
Notice: Undefined index: character in C:\wamp\www\shop\login.php on line 33
which is:
$account=clean(strtolower($_POST['account']));
$passwd=md5($client_salt.$_POST['password']);
$player=clean($_POST['character']);
when I try to login, I always get "Invalid Password."
The client salt is flight
$client_salt = "flight"; (in the config.php)
Does anybody know how to fix this matter?
Thanks in advance.
First off, I didnt used this release and havent checked the files myself.
But, undefined index meaning the variables contains no data (own interpretation)
what happens is your login.php doesnt get the data from the html form. so check the relation between the login.php and the form files.
When you try to log in I presume the correct error you get is "Login details is incorrect".
So what really happens is your login.php doesnt even save your data to the database and you're not actually registered yet.