![]() |
Add a sign-up feature to a flat file login script
Good day to you all,
I'm working on a flat file login script and I would like to add a sign-up feature to it with a email confirmation process. Here is my code : PHP Code:
user, pass, path user, pass, path How can I add this sign in feature, user would click on sign in, fill a form with his/her full name as user, no space, choose a password, an email would be send and there would be an link to confirm, then the user would be added to the really list. Thanks! |
You would just store the account in the database like you normally would, only then you set a field to something similar to "verified" or "enabled" and set the value to 0/1, true/false, yes/no. Then in another record you could have a 'secret' and random string of characters that corresponds to the random string in the verification email.
Code:
Database:Code:
Email: |
Just make sure those flat files are below the webroot so basic users can not access them.
Why are you using a flat text file instead of a database or at least XML (XML will be easier to parse when large amounts come). |
| All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0