login and password protection system

pkdude113

Reputable
Joined
Mar 21, 2008
Messages
202
Reaction score
0
FP$
6
I was wondering if i can create a password protection system.
That lets members register then they can use their own username and pass you get into the site.
I know phpbb already provides one.but i just wanna know how to make one.
 
Here's a basic login script, but you'll need to edit it for yourself.
Code:
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="JavaScript") { 
if (form.pass.value=="Kit") {              
location="page2.html" 
} else {
alert("Invalid Password")
}
} else {  alert("Invalid UserID")
}
}
//-->
</script>

<center>
<table bgcolor="white" cellpadding="12" border="1">
<tr><td colspan="2"><center><h1><i><b>Login
Area</b></i></h1></center></td></tr>
<tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input
name="id" type="text"></td></tr>
<tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass"
type="password"></td></tr>
<tr><td><center><input type="button" value="Login"
onClick="pasuser(this.form)"></center></td><td><center><br><input
type="Reset"></form></td></tr></table></center>
 
how?
If I want people to register automatically and not me setting a pass and they use it?
 
COOL_CORGI said:
Is this for registering at the forum you want?
If I want to put this on the forum.And people can register like the normal instant registration mod.
 
Back
Top Bottom