Hey anyone plz can u tell me that how can i make a login and register option in my website
Register option
Collapse
X
-
look at most lava mods, etc, all have login n register...
Or to break it down in basic example...
Register form has input for username and password. The form submits, ie: to the all classic register.php which reads the variables and creates entry in users table containing username n password...
Login... Similar form to register form, except posting to login.php. Login.php reads username n password variables. First select count where username='value' from userstable to ensure user exists, if exists see if password matches... If so, set session, cookies, etc... Else return invalid password if password wrong or username invalid if it doesn't exist...
Sorry for sloppyness n lack of proper code samples, typing on mobile...
Comment
Comment