Web Analytics Made Easy -
StatCounter log in and receive personal page - CodingForum

Announcement

Collapse
No announcement yet.

log in and receive personal page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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

    Comment


    • #3
      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; Jun 19, 2002, 06:18 PM.

      Comment


      • #4
        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. ;)

        Comment

        Working...
        X