Results 1 to 8 of 8

Thread: html login script

  1. #1
    Join Date
    Oct 2006
    Posts
    94
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Cool html login script

    I want to make an admin only page for which the link to it will be on my index.html page. I have seen before, when a person clicks on a link to a page which needs authorising, a nice box comes up in the middle of the screen asking for a username and password.

    Can someone tell me what I need to beable to do that myself? Can it only be done with a mysql database? I'd rather not use mysql or PHP. Can it be done with html?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by smithster
    Can it be done with html?
    No.
    - Mike

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You can make the login screen using HTML, CSS, etc, but in order to do the login itself you would need to use a server side language (PHP,ASP, etc). You could use Javascript for this as well, but that is pointless as it lacks security. Anyone could view your page source and see that the list of usernames / passwords. As opposed to using a server-side language with some kind of database, this adds a little security to it.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by smithster
    I'd rather not use mysql or PHP
    Quote Originally Posted by thetestingsite
    but in order to do the login itself you would need to use a server side language (PHP,ASP, etc)
    ...
    - Mike

  5. #5
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Why don't you want to use PHP? Does your server/host not allow it?

  6. #6
    Join Date
    Oct 2006
    Posts
    94
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I can use PHP/MYSQL, I just dont really know how to at the moment! I am still learning. I will keep searching about for a script. Maybe I will have to use PHP then. Javascript as you said deffinately isn't secure enough!! I am more bothered about the login appearance really. I thought it was HTML! For example, if I login to my router it brings up a box in the centre of the screen, which looks like a windows box. It asks for a username and a password. That is the style I want and I am sure I have seen other people with them on their websites.


  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's an HTTP 401 prompt. Check out the generator for Apache.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Javascript can't store information. Period. That's why you use a server side language.
    - Mike

Bookmarks

Posting Permissions

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