Hi all
I'm having a spot of bother with the code below.
On my PC it works fine and will not let you enter the same details twice.
On the server site however it doesn't seem to care, it produces no errors, it writes the $entry var to the file but doesn't match it?
$userfile="./userfile.txt";
$entry=$username . "\t" . $usermail ."\n";
//******* check if registered and append user to userfile.
if (!($fp= fopen($userfile,"a+"))) die ("Cannot open file!");
while (!feof($fp)) {
$line=fgets($fp,255);
if ($line==$entry) {
print($registered);
exit;
}
}