Forum Moderators: coopster
Typically you'd have an html/php/jsp/whatever file with a form in it. The form has an action property. Set the action to doLogin.php or whatever file naming scheme you want to use. Inside of doLogin.php the control flow would look like:
Get post data using $_POST variables.
Query the database using the post data. You would probably want to hash the password information using MD5 and some added salt depending on the level of securtiy you need. Your MySQL query would look something like SELECT user_id FROM users WHERE username = '$username' AND password = '$password'
If the number of rows returned is 1, then it is a valid login and you can act accordingly, ie. register session variables and redirect.
If it's not then you can display an error message like invalid login and redirect.
I'd look more into PHP and MySQL.