![]() |
log in and receive personal page
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?
|
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 |
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> |
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.
|
| All times are GMT +1. The time now is 07:14 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.