wts wrong with these snippets?
and here it says call to undefined function fgetcvs ()Code:$data = $_POST['first_name'] . "\t" . $_POST['last_name'] . "\t" . $_POST['email'] . "\t" . $_POST['username'] . "\t" . crypt($_POST['password'] . "\t" . $dir . "\r\n"; fwrite ($fp, $data);
Code:if (isset ($_POST['submit'])) { $loggedin = FALSE; $fp = fopen ('../users/users.txt', 'rb'); while ($line = fgetcvs ($fp, 100, "\t")) { if (($line[0] == $_POST['username']) AND ($line[1] == crypt ($_POST['password'], $line[1]))) { $loggedin = TRUE; break; } }





Reply With Quote