Hello,
Seeking assistance here. Im new to this forum and was trying to find the right area to post. I apologize if this is not it. ?
I have successfully entered the HTML code for this in a website I am working on.
The problem I am running into is that I am getting a message after entering the username and password that reads” to view this page you need to login to area “authorization required” on [url]www.essex.net:80[/url].
your password will be sent in the clear
Then it asks me to login again. which logs me in perfectly.
[B][I] I just want to get rid of the additional login screen pop-up I am getting.
This was the script I retrieved from this website below.
<SCRIPT LANGUAGE=”JavaScript”>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username==”member1″ && password==”password1″) { window.location=”page1.html”; done=1; }
if (username==”member2″ && password==”password2″) { window.location=”page2.html”; done=1; }
if (username==”member3″ && password==”password3″) { window.location=”page3.html”; done=1; }
if (done==0) { alert(“Invalid login!”); }
}
// End –>
</SCRIPT>
<!– STEP TWO: Paste this code into the BODY of your HTML document –>
<BODY>
<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size=”+2″><b>Members-Only Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value=”Login!” onClick=”Login()”></td></tr>
</table>
</form>
</center>
[B][I][COLOR=”Red”]This is what I have now
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username==”essex” && password==”lk123″) { window.location=”Lake_Forest_Rate_Sheet.html”; done=1; }
if (username==”essex” && password==”org123″) { window.location=”Orange_Rate_Sheet.html”; done=1; }
if (username==”essex” && password==”org111″) { window.location=”Lake_Forest_Rate_Sheet.html”; done=1; }
if (done==0) { alert(“Invalid login!”); }
}
// End –>
</SCRIPT></span><strong><br />
</strong></p>
<p style=”text-align: center”><span><center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size=”+2″><b>Log In</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value=”Login!” onClick=”Login()”></td></tr>
</table>
</form>
</center></span></p>
Not sure what I was doing wrong.
Im sure its something simple, but its late and I give up after 3 hours.
This is the link for the project. I can change the passwords later once I figure this thing out.
Thanks for your assistance everyone!
[URL=”http://www.essexmortgage.net/Rate_Sheets.html”]http://www.essexmortgage.net/Rate_Sheets.html