snippet to check username / password against a text file
compares fields seperated by a pipe "|" to strings sent via POST variables

download options for string handling / string compare

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.