dmweber
07-20-2007, 04:27 AM
My Client does not want the user name or location fields on his login page. However, when I delete the user name and location fields, the script does not work. Can Someone help?
This is the Dynamic Drive Password Script.
Thank you,
DMW
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Password</title>
</head>
<body topmargin="0">
<p>
<img border="0" src="../../online_catalogs/images/HD_banner.jpg" width="756" height="144"></p>
<p><b><font face="Arial" size="2" color="#9B3E00">Please Sign In</font></b></p>
<TD>
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
function submitentry(){
password = document.password1.password2.value
username = document.password1.username2.value
passcode = 1
for(i = 0; i < password.length; i++) {
passcode *= password.charCodeAt(i);
}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
if(passcode==985732098762)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location=password+".htm"}
else{
alert("password wrong")}
}
</script>
<form name="password1">
<p>
<strong><font face="Arial" size="2">Name:</font> </strong>
<input type="text" name="username2" size="30"> <font face="Arial" size="2"><b>
<br>
<br>
Location</b>:</font> <select size="1" name="D1">
<option>Carson City, NV</option>
<option>Chicago, IL</option>
<option>Oxford, U.K.</option>
<option>Plano, TX</option>
</select><br>
<br>
<strong><font face="Arial" size="2">Enter password:</font> </strong>
<input type="password" name="password2" size="15">
<input type="button" value="Submit" onClick="submitentry()"><b><font face="Arial" size="2"><br>
</font><font face="Arial" size="1" color="#C85827">Password is Case Sensitive
</font></b> </p>
</form></TD>
</body>
</html>
This is the Dynamic Drive Password Script.
Thank you,
DMW
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Password</title>
</head>
<body topmargin="0">
<p>
<img border="0" src="../../online_catalogs/images/HD_banner.jpg" width="756" height="144"></p>
<p><b><font face="Arial" size="2" color="#9B3E00">Please Sign In</font></b></p>
<TD>
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
function submitentry(){
password = document.password1.password2.value
username = document.password1.username2.value
passcode = 1
for(i = 0; i < password.length; i++) {
passcode *= password.charCodeAt(i);
}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
if(passcode==985732098762)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location=password+".htm"}
else{
alert("password wrong")}
}
</script>
<form name="password1">
<p>
<strong><font face="Arial" size="2">Name:</font> </strong>
<input type="text" name="username2" size="30"> <font face="Arial" size="2"><b>
<br>
<br>
Location</b>:</font> <select size="1" name="D1">
<option>Carson City, NV</option>
<option>Chicago, IL</option>
<option>Oxford, U.K.</option>
<option>Plano, TX</option>
</select><br>
<br>
<strong><font face="Arial" size="2">Enter password:</font> </strong>
<input type="password" name="password2" size="15">
<input type="button" value="Submit" onClick="submitentry()"><b><font face="Arial" size="2"><br>
</font><font face="Arial" size="1" color="#C85827">Password is Case Sensitive
</font></b> </p>
</form></TD>
</body>
</html>