| View previous topic :: View next topic |
| Author |
Message |
enemeth
Joined: 26 Jan 2007 Posts: 10
|
Posted: Sat Jan 27, 2007 1:50 am Post subject: Log in page |
|
|
HI there everyone
i just went through a week of creating a registration page to add customers to a database, all worked well with great help from the admins here !! but now i need to add a log in page to my site for the users who are already members, anyone have any ideas or any tutorials on doing this ?
Thanks,
Elaine |
|
| Back to top |
|
 |
tartan

Joined: 14 Nov 2006 Posts: 18
|
Posted: Sat Jan 27, 2007 9:50 pm Post subject: |
|
|
I think you have to create a form with username and password fields, run a query with the values submitted and use cookies maybe
I'm not sure, I never did it... |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Sun Jan 28, 2007 1:17 am Post subject: |
|
|
yes
you need a form with a username and password so you can send them to a script that runs a query and check if that user exists, if the password is correct then you can log him in using php sessions or cookies (or both)
you'll probably find a decent tutorial on this out there although this is a really huge topic and can be implemented in several different ways.
I think you might have better looking for tutorials about cookies, sessions and then choose how to authenticate your users
it will require you to spend a decent amount of time, believe me  |
|
| Back to top |
|
 |
|