Forum Moderators: phranque

Message Too Old, No Replies

multiple user login

         

ycliuwz

1:11 pm on May 10, 2005 (gmt 0)

10+ Year Member



hi,
could anyone help me out with this.
I'm trying to build a online program that uses login to redirect existing user to their specific sites. user and passwords to be read from a flat file(.txt), new users to be able to register with a user name and password.
Well, could anyone provide me a site where it can be useful? or solutions to this problem?
I really don't know where or how to start. thanks

kazecoder

3:31 pm on May 10, 2005 (gmt 0)

10+ Year Member



I would start like this:

A) Setup your .txt file with the appropriate permissions so that it can be written to
B) Create a standard login.html form to collect data
C) Create another page probably .php or.asp to query text file and then redirect user appropriately.
D) Create a signup.html page that would be linked to by the login form for users to signup.
E) Another .php or .asp page to add data to text file

Hope this helps because I dont really know any specific sites that deal with this directly. You will definitely need a server side language like php or asp to handle text file.

ycliuwz

5:10 am on May 12, 2005 (gmt 0)

10+ Year Member



hmm...i think i know how to read from file already but can u teach me how i can actually compare the username and password to the file?
using a login for.
and how can i add a new user.. etc newme , password. to the existing file?

thanks.

file.txt
--------
me:1235
me2:pwd