View Single Post
Old 07-08-2008, 03:19 PM
  #4
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 13,263
iTrader: (0)
coothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond reputecoothead has a reputation beyond repute
Hi there neo_sharath,

it can be faked with javascript but you should understand that password protection that
is not done server side is reallly pointless as anyone can discover what the password is.

Here is the example....
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
   var k=0;
   var df;
window.onload=function() {
   df=document.forms[0];
df[1].onkeyup=function() {
df[0].value+=df[1].value.charAt(k);
   k++;
for(c=0;c<df[1].value.length;c++) {
   df[1].value=df[1].value.replace(df[1].value.charAt(c),'#');
   }
  }
 }
</script>

</head>
<body>

<noscript>
<div>
Without javascript enabled you will be unable to login
</div>
</noscript>

<form action="http://www.google.com/">
<div>
<input type="hidden" name="password">
<input type="text">
<input type="submit" value="submit password">
</div>
</form>

</body>
</html>
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
 
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.