I am trying to make a page that asks a user for a user ID and password to login. Then I want to create a script to take the user ID and password, encrypt the password, and insert both into the database (making sure there is not one like it already - OK to have same password, but user ID must be unique). If they do not log in successfully, I want to display a message to the user and write a message, with the date, time, and user IP address, to a file called login_errors.txt - (I want to put this in a data directory in the current directory - I need to make sure the permissions allow me to write to this little directory, using append, not write.) Help!