+ 2
Need suggestion regarding accounts in a website and using php andmysql
I have a dashboard, register page, and login page. Please suggest how to make unique and secure accounts for users.
6 odpowiedzi
+ 3
1. Create a mysql database and a 'members' table in it
2. Get the contents of the form and ignore whitespace.
3. Validate the inputs.
4. Hash the passwords and escape special characters from input values.
5. Save the values into a record in the database.
+ 3
Thanks. I have performed all the action but after authentication I am directing them to dashboard page and I want unique address for all the users. How to get this?
+ 2
Use sessions and cookies.
https://www.w3schools.com/php/php_sessions.asp
+ 2
Thank you, will ask again if get stuck.
+ 1
Sure. You are welcome.
+ 1
Hi, I used session but still not getting unique address. Am I missing something on this?