Register option

Started on the old forum in November 2012 · view the original in the archive · old links redirect here

2 replies · 487 views · started 14 years ago · 1 min read

3 participants
saurabhphp Newbie · 1 posts #1

Hey anyone plz can u tell me that how can i make a login and register option in my website

Pablo Developer · 164 posts #2

php and mysql

pmbguy Senior · 344 posts #3

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...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close