<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<title>Verses Inc.</title>

<HEAD>

<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=="username" && password=="password") { 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("Stop trying to hack accounts."); }
}
// End -->
</SCRIPT>

<!-- Script Size:  1.60 KB  -->

<BODY>

<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Verses Admins Only</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>

</body>
</html>

Can someone give me an example in the list and highlight it red?

Whats stoping someone from viewing the source?

The only reliable way to have some sort of website authentication is to use a SSL (Server Side Language) and or httpauth whith is provided by apache.

Zachary, looks like people don't bother to check older treads!!! :sad:

This is already 4th or 5th person in past 10 days asking same question, which you answered previously.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.