Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

HTML Login Form

Options
  • 23-09-2007 10:00pm
    #1
    Closed Accounts Posts: 388 ✭✭


    OK, I need a Login Script in HTML that you can have like a user called news, dj and thats it, but they go to seperate locations, not the same one, I have seen one that sends them to the same one but not one that sends them to a different page on each login... Please and thank you!

    Thanks if anyone makes it or helps!


Comments

  • Registered Users Posts: 8,452 ✭✭✭Time Magazine


    Sounds easy enough... I think.

    Use select tags for the different usernames, then use JavaScript to send them to different places, e.g.:

    if(document.myform.user == "News"){
    window.location == "news.html";}

    if(document.myform.user == "DJ"){
    window.location == "dj.html";}

    If you want to incorporate passwords, you're either going to have to do it extremely insecurely using JavaScript or go a good bit more advanced and use e.g. PHP to have a proper login system.


Advertisement