|
Posted by Ehsan on 03/24/06 08:02
Hi,
You will have to use trim() over the $username and $password, because
the values fetched from the txt file is having a space either before or
after the string. So you will have to get rid of those.
if ( ( trim($username) == $_POST['txtUsername'] ) &&
( trim($password) == $_POST['txtPassword'] ) ) {
Thanks,
Ehsan
http://ehsan.bdwebwork.com
Navigation:
[Reply to this message]
|