Hello,
I have a login.php3, webcounter.php3, and webcounter.db file.
Login.php3 has the login form with two inputs, id and pw
the form action contains the url to webcounter.php3
when the user submits the form, i want them to be logged into webcounter.php3 and searching the webcounter.db file for the username(id) and password(pw).
If the user logs in ok, they are taken to the welcome page to manage their counter, if they aren't they get a warning saying "login failed" or if they didn't put the username or password in.
Please tell me how to create a login using a mysql file.
here is the complete html form for login.php3
<form
method="/webcounter.php3" action="post">
<input type="text" name="id">
<input type="password" name="pw">
<input type="submit" value="login">
</form>
submission processes the information to webcounter.php3
validates the login and referring domain.
this ensures that no one can copy the login code and loging from their own site.
the code will have to chop anything after the domain I specify in webcounter.php3
say i put that these are valid domains
refers('www.domain.com','domain.com');
then it takes the person to a login success page or a login failed page.
if the userlogs in ok, he goes to webcounter.php3?login=ok&userid={'id'}
were {'id'} is his id number that he logged in with
and if it failed, it directs the user to...
webcounter.php3?login=failed
In each one, please provide a section were I can create some html for it. After that I think I can modify it myself.
MYSQL---
Please tell me how to create a mysql database for webcounter.db and how to login/edit/delete it also!