If you're looking for a real simple login page, here's some code that I use on our internal website all the time. Change the yourusername, yourpassword, and the www.theurlyouwantogoto.com variables to suit your own code. I hope it will help you.
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=="yourusername") {
if (form.pass.value=="yourpassword") {
location="http://www.theurlyouwanttogoto.com"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
<center>
<table bgcolor="white" cellpadding="12" border="1" width="410" height="212">
<tr><td colspan="2" width="378" height="45"><center><h1><b><font size="5">Associate Satisfaction Survey</font><i><br>
<font size="3">Access allowed for designated departments only</font></i></b></h1></center></td></tr>
<tr><td width="163" height="12"><h1><i><b><font size="4">User ID:</font></b></i></h1></td><td width="187" height="12"><form name="login"><input
name="id" type="text"></td></tr>
<tr><td width="163" height="11"><h1><i><b><font size="4">Password:</font></b></i></h1></td><td width="187" height="11"><input name="pass"
type="password"></td></tr>
<tr><td width="163" height="32"><center><input type="button" value="Login"
onClick="pasuser(this.form)"></center></td><td width="187" height="32"><center><br><input
type="Reset"></form></td></tr></table></center>
<p align="center"><font size="3">The following departments have been selected to
participate in this survey:</font></p>
<div align="center">
<center>
<table border="0" cellspacing="1" width="282">
<tr>
<td width="145" align="left"><font size="3">ASC</font></td>
<td width="123" align="left"><font size="3">Hospice</font></td>
</tr>
<tr>
<td width="145" align="left"><font size="3">Emergency Dept.</font></td>
<td width="123" align="left">
<p align="left"><font size="3">Maintenance</font></td>
</tr>
<tr>
<td width="145" align="left"><font size="3">Food Services</font></td>
<td width="123" align="left"><font size="3">Medical Records</font></td>
</tr>
<tr>
<td width="145" align="left"><font size="3">Home Health</font></td>
<td width="123" align="left"></td>
</tr>
</table>
</center>
</div>
<p align="center"><font size="3">Please see your department director for the
User ID and Password</font></p>
<p align="center"><font color="#FF0000">The <b> first</b> department reaching 100% participation each quarter will receive Chamber of Commerce Gift Certificates for each associate. The remaining departments within the group that reach 100% participation will receive a pizza party</font></p>
Bookmarks