> Way does this give me this error It's a warning, not an error.
> Warning: REG_EMPTY: in emailusers.php on line 52 > > > $lines = file("data/members.txt"); > foreach($lines as $line){ > list ($logged_email,$logged_title,$logged_first_name,$logged_last_name) = split("|", $line); > if ($logged_email==$email) {print "<center>This email has already been registered.</center>"; > exit;} > } > > > this is what is in the members.txt file > > [EMAIL PROTECTED]|Mr.|Richard|Kurth|1046828998|03/04/2003 You have 6 parts in your .txt file if you use | as the delimiter. In your list() call, though, you only give 4 variables. This leaves two parts that won't be assigned to a variable and it causes PHP to issue a warning. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php