Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can do it with javascript and redirect the user based on thouse so e.g.
    username:js
    passassword
    location becomes jspassword.htm

    is that ok? if it is a can construct a script.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>
    Last edited by x_goose_x; 06-19-2002 at 10:18 PM.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •