View Full Version : log in and receive personal page
mickieb
06-19-2002, 04:49 PM
I need a script for my fantasy football site where each user is assigned a user and pass or pin number and when they sign in they are branched to their own personal page which will contain details of their team. Does this need to be CGI or can a javascript do it?
scroots
06-19-2002, 09:25 PM
you can do it with javascript and redirect the user based on thouse so e.g.
username:js
pass:password
location becomes jspassword.htm
is that ok? if it is a can construct a script.
scroots
x_goose_x
06-19-2002, 10:07 PM
This forwards them to a file named after their username or password. ex username: john password: mypass the page would be john-mypass.htm
<html>
<head>
<script>
function sub() {
u = document.form1.user.value;
p = document.form1.pass.value;
location.replace(u+"-"+p+".htm")
}
</script>
</head>
<body>
<form name="form1" onsubmit="sub(); return false;">
Username: <input type="text" name="user"><br>
Password: <input type="text" name="pass"><br>
<input type="submit" value="Enter">
</form>
</body>
</html>
whammy
06-20-2002, 01:48 AM
Like goose is showing, you can type out personal pages for each member and use javascript - but for anything that doesn't require hands-on manipulation, you'll need a server-side scripting language.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.