I finally resolved my previous problem with my php registration script (thanks to your guys help) and now I'm having another problem
This is with the login script.
and please don't groan and close this topic because this one isn't about stupid parse errors (lol)
the script isn't validating my login info right. I'll register, then go to the login page. My problem is, when I login (I'm using the "test" username and "test" password I registered with. I don't think I'm typing it in wrong) it says that my username and password do not match.
here is the login.php that the login script uses
<?php
if (isset ($_POST['submit'])) {
$loggedin = FALSE;
$fp = fopen ( 'users.txt', 'rb' );
while ( $line = fgetcsv ($fp, 100, "\t")) {
if ( ($line[0] == $_POST['username']) AND ($line[1] == crypt ($_POST['password'], $line[1]) ) ) {
$loggedin = TRUE;
break;
}
}
}
if ($loggedin) {
print ("You are now logged in!");
} else {
print ("The username and password did not match!");
}
?>
and this is the user.txt that it pulls the info from
test $1$iIujXdC1$hnHez0KjeD7jch0Xz8yH/1 11988036902649
if you can help me figure this out, that would be great.