darwin212
04-11-2007, 08:22 PM
On http://www.tripod.lycos.com/ I have a free account which I can make a private folder. But where can I put in the username and password in the folder?
<html>
<head>
<title>Login</title>
<body bgcolor="black" text="blue">
<script type="text/javascript">
function login() {
var secureFolder="foldername/";//change this to the folder of your protected file
var xArea = secureFolder+document.xLogin.elements[0].value+document.xLogin.elements[1].value+".shtml"
if (document.xLogin.elements[0].value == secureFolder && document.xLogin.elements[1].value.length == 8) {
window.open(xArea,"","height=500,width=775,location=0,status=0,scrollbars=1,menubar=1,resizable=1,toolbar=1");
} else {
document.location.href = "no_go.shtml";
}
}
</script>
</head>
<body>
<br><br><br><br><br><br><br><br>
<div align="center">
<h1>Registered users only!</h1>
<TABLE BORDER="4" CELLPADDING="2" CELLSPACING="2" WIDTH="15%">
<TR>
<TD>
<form name="xLogin" onSubmit="javascript:login();return(false);">
Username: <input type="text" size="10" maxlength="8"><br><br>
Password: <input type="password" size="10" maxlength="10"><br>
<blockquote>
<input type="submit" value="Login">
</blockquote>
</form></TD>
</table>
</body>
</html>
And also how do I put the secure url in a folder so that people wont beable to get it?
<html>
<head>
<title>Login</title>
<body bgcolor="black" text="blue">
<script type="text/javascript">
function login() {
var secureFolder="foldername/";//change this to the folder of your protected file
var xArea = secureFolder+document.xLogin.elements[0].value+document.xLogin.elements[1].value+".shtml"
if (document.xLogin.elements[0].value == secureFolder && document.xLogin.elements[1].value.length == 8) {
window.open(xArea,"","height=500,width=775,location=0,status=0,scrollbars=1,menubar=1,resizable=1,toolbar=1");
} else {
document.location.href = "no_go.shtml";
}
}
</script>
</head>
<body>
<br><br><br><br><br><br><br><br>
<div align="center">
<h1>Registered users only!</h1>
<TABLE BORDER="4" CELLPADDING="2" CELLSPACING="2" WIDTH="15%">
<TR>
<TD>
<form name="xLogin" onSubmit="javascript:login();return(false);">
Username: <input type="text" size="10" maxlength="8"><br><br>
Password: <input type="password" size="10" maxlength="10"><br>
<blockquote>
<input type="submit" value="Login">
</blockquote>
</form></TD>
</table>
</body>
</html>
And also how do I put the secure url in a folder so that people wont beable to get it?