flat file login
Hi Guys,
I am try to create a login page through a flat file, but i am experincing so problems wondering if you can help me out!
I have created a .txt file called data.txt which is placed in the same place has my php pages a login.php and register.php. I want to collect user info such as name password address etc. and store that into a text file which i have managed to do, i have also manged to print out the content of the data.txt file on to the screen.
However i want the login.php to take in the username and password and match it with the uasername and password held in the data.txt. Also if the users login is correct i want to take them to a page on my server i.e. orderForm.htm so i need to some how redirect them!
There seems to a lot of links and scripts about if you are using MYSQL however i cant seem to find any scripts for using a flat file.
Thanks giys!
|