I am a noob at web programming. I am currently writing a test forum. People will be able to create accounts and then login. But my problem is I dont know how a login script works. So I came up with this idea:
1):
Every time an user creates an account I will write the user's name, email and password to a database file.
Then when he tries to login he my php program will query the file line by line and see if there is a match.
Once it has a match it will load the users profile page, the name of his page will be [name]+[email]+[password].html
So that each file will be unique.
So will it work or is there a nother way, posibly better, more secure way?
Also (I am not sure if this is against daniweb rules, I couldnt find anything that said it was) but if anyone would like to work with me on this project please contact me by sending me a message through daniweb.