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 8 of 8

Thread: Html Login Area

  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Bristol
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Html Login Area

    Hi, I would like to make a html login page with users able to login:

    for example:

    User: tom
    url: website.co.uk/user/tom

    User: emma
    url: website.co.uk/user/emma

    is it possible to do this with only one login page

    Many Thanks
    Tom

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    How will you compare users to non users? You would need a database for this. Not sure you can do it all with one page though.

  • #3
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Bristol
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a html script which allows multi users to login, but it only takes them to the 1 page, is it possible to make one that when users login it takes them to there own webpage?

  • #4
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,899
    Thanks
    15
    Thanked 226 Times in 226 Posts
    To do this with any kind of security at all you need some kind of server side software, such as PHP. If security is not a problem and you just have a few trusted users you can just use an HTML dropdown menu to select the user's pages. There's also a question of scale, are you talking 20 users, or 20,000? One simple way to do it is have a folder for each user name and an index.php in each folder.

  • #5
    Banned
    Join Date
    Aug 2010
    Location
    everywhere
    Posts
    63
    Thanks
    2
    Thanked 3 Times in 3 Posts
    You should use other language like php,asp,aspx to do this job.

  • #6
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Bristol
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi DrDOS,

    I am only taking about 10 users max, yes I think a folder for each user is a good idea, do you know any kind of html code to stop a user visiting a page of there own area without going through the login page.

    EG: say I have a user called Tom, and his main page is www.website.com/user/tom/index.html

    and his page linked to that is, www.website.com/user/tom/infoaboutyou.html

    is there anyway of stoping the user going to that page without going through the login page first?

    Many Thanks
    Tom

  • #7
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,899
    Thanks
    15
    Thanked 226 Times in 226 Posts
    Quote Originally Posted by tmrtom View Post
    Hi DrDOS,

    I am only taking about 10 users max, yes I think a folder for each user is a good idea, do you know any kind of html code to stop a user visiting a page of there own area without going through the login page.

    EG: say I have a user called Tom, and his main page is www.website.com/user/tom/index.html

    and his page linked to that is, www.website.com/user/tom/infoaboutyou.html

    is there anyway of stoping the user going to that page without going through the login page first?

    Many Thanks
    Tom
    There is at least one way that I can think of, it's using the often overlooked window.name attribute. You can set the user's page to automatically close or history.back if it doesn't have the proper window.name, which in this case would come from the home page when the user signs in. I've actually tested this and it works.

  • #8
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Bristol
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi DorDos,

    Please could you send me the code for that?

    Many Thanks
    Tom


  •  

    Posting Permissions

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