Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

HTML Login Form

  • 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, Registered Users 2 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