DPK, I've isolated the problem. Sorry for all the trouble... it seems your script is not at fault. Apparently, whenever a new member registers, a blank line is added between the last existing member and the new member in memberslist.cgi. Thus, your script attempts to read a profile for a blank line.
I looked at ubb_registration.cgi and the line that writes to memberslist.cgi is as follows:
[code][/code]
As far as I can remember, I've never had to alter this file, so I'm not sure what is causing the blank line.
Edit: By changing what is written to file to "$user_name|!!|$next_numbern"); it now seems to work without problems.
[ 01-26-2002 07:00 AM: Message edited by: Nirvustool ]