Close

Results 1 to 16 of 16

Thread: HTML Login?

  1. #1
    DF VIP Member Roo's Avatar
    Join Date
    Aug 2002
    Location
    UK - Coventry
    Posts
    529
    Thanks
    0
    Thanked:        0
    Karma Level
    289

    Default HTML Login?

    Okay, so for my coursework website, I am trying to make a site where different users can log in and get different parts of the website depending on who they are logged in as?

    Does anybody know how I can do this? It doesnt have to be 100% secure or anything majorly fancy, just the basics of it?

    A point in the right direction or explaination would be great thanks.
    CONTACT

    My liver is evil and must be punished!



  2. #2
    DF Probation Fusen's Avatar
    Join Date
    Mar 2004
    Location
    Kent Uni
    Posts
    3,672
    Thanks
    0
    Thanked:        0
    Karma Level
    565

    Default Re: HTML Login?

    javascript is what you are looking for
    javascript.internet.com
    or search google for javascript login scripts
    [CENTER][FONT=Verdana][SIZE=2]Real pirates don't [I]STEAL[/I], they [/SIZE][/FONT][B][FONT=Verdana][SIZE=2]SHARE[/SIZE][/FONT]
    [/B][SIZE=1]Unless they are cunts, then they just leech...:happy:[/SIZE][/CENTER]

  3. #3
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    450

    Default Re: HTML Login?

    If you are planning on using javascript then there is no point at all in doing it because all it takes it view/source and and the user will be able to see the username/password straight away - the only way to do it is to use a server-side technology..

  4. #4
    DF Probation Fusen's Avatar
    Join Date
    Mar 2004
    Location
    Kent Uni
    Posts
    3,672
    Thanks
    0
    Thanked:        0
    Karma Level
    565

    Default Re: HTML Login?

    Quote Originally Posted by John Keymer
    If you are planning on using javascript then there is no point at all in doing it because all it takes it view/source and and the user will be able to see the username/password straight away - the only way to do it is to use a server-side technology..
    Quote Originally Posted by original post
    It doesnt have to be 100% secure or anything majorly fancy, just the basics of it?
    [CENTER][FONT=Verdana][SIZE=2]Real pirates don't [I]STEAL[/I], they [/SIZE][/FONT][B][FONT=Verdana][SIZE=2]SHARE[/SIZE][/FONT]
    [/B][SIZE=1]Unless they are cunts, then they just leech...:happy:[/SIZE][/CENTER]

  5. #5
    DF VIP Member tam9's Avatar
    Join Date
    Apr 2002
    Location
    The city of R
    Posts
    3,855
    Thanks
    2
    Thanked:        1
    Karma Level
    636

    Default Re: HTML Login?

    Still, I would also recommend server side. Cos he says it doesn't have to be 100% secure it doesn't mean that he won't get the browny points for having it all.

    For a quick easy solution go out with PHP & MySQL, they will be really impressed aslong as you desitgn it in an OOP environment and make good DB schemas and your sorted for a 100% pass in my opinion. Even if it didn't work perfectly you will still get good marks for the thought and the design...remember it takes time to debug...if using PHP I'd recommend using $_SERVER[PHP_SELF]; which you can have in your scripts (or make it an include script) which will show you where abouts in the filesystem you are when viewing the website...

  6. #6
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    450

    Default Re: HTML Login?

    I know he said not 100% secure, but surely not 1% secure would be a bit low, lol.
    Anyway, I'm in a bit of s rush now, but it you still need the javascript stuff I'll post some pointers later...

  7. #7
    DF VIP Member Roo's Avatar
    Join Date
    Aug 2002
    Location
    UK - Coventry
    Posts
    529
    Thanks
    0
    Thanked:        0
    Karma Level
    289

    Default Re: HTML Login?

    Hmm thanks for the posts guys.

    Any chance you could each go into a little more detail? I understand a bit of javascript, but server side? How would that work?

    And yeah, having it secure would get extra browny points, but dont wanna make it too complicated that it doesnt work at all.

    Thanks again guys
    CONTACT

    My liver is evil and must be punished!



  8. #8
    DF VIP Member Nikki's Avatar
    Join Date
    Dec 2002
    Location
    Walsall
    Posts
    12,413
    Thanks
    559
    Thanked:        148
    Karma Level
    898

    Default Re: HTML Login?

    try this

  9. #9
    DF Rookie mitchthebitch's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    10
    Thanks
    0
    Thanked:        0
    Karma Level
    0

    Default

    .
    Last edited by mitchthebitch; 17th November 2010 at 12:24 PM.

  10. #10
    DF VIP Member
    canardo's Avatar
    Join Date
    Jul 2001
    Location
    uk
    Posts
    840
    Thanks
    0
    Thanked:        0
    Karma Level
    321

    Default Re: HTML Login?

    if its for ten static users you and assuming you are running apache you could also modify the .htaccess file and over ride authmod to allow for the ten users

  11. #11
    DF VIP Member Freddy's Avatar
    Join Date
    Mar 2006
    Location
    cuntsville
    Posts
    6,201
    Thanks
    3
    Thanked:        13
    Karma Level
    782

    Default Re: HTML Login?

    i think you will find php* a headache. its the right thing to do but complex for a n00b and for the sake of one project.

    cut n paste javascript if it is pure asphetics you are after.

    *because of the low level of data you wouldnt need mySQL (database) for this exercise as you could write login details into to a .txt file that php would retrieve.

  12. #12
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    450

    Default Re: HTML Login?

    Quote Originally Posted by inspironx View Post
    *because of the low level of data you wouldnt need mySQL (database) for this exercise as you could write login details into to a .txt file that php would retrieve.
    Or, you could just store them as variables in the php script...

  13. #13
    DF VIP Member Freddy's Avatar
    Join Date
    Mar 2006
    Location
    cuntsville
    Posts
    6,201
    Thanks
    3
    Thanked:        13
    Karma Level
    782

    Default Re: HTML Login?

    lol thats very true John. it's securer to have them in a .txt at least. i forgot that actual security isn't needed

  14. #14
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    450

    Default Re: HTML Login?

    Is it more secure to have them in a text file though...? Yes, you can set permissions on the file etc, however if you're not careful, a hacker could find the name of the text file and simply navigate to it... http://www.yoursite.com/password.txt. It would require pissing about with user permissions on the server etc in order to make it work correctly (if at all...?)
    With a PHP script, the code is excecuted server-side, so if you have say
    PHP Code:
    $PASS="thePassword123"
    then without access to the server, a user will not be able to see the contents of such variables (unless of course in the case of some shabby code on the developers behalf that can be exploited. )

  15. #15
    DF VIP Member Freddy's Avatar
    Join Date
    Mar 2006
    Location
    cuntsville
    Posts
    6,201
    Thanks
    3
    Thanked:        13
    Karma Level
    782

    Default Re: HTML Login?

    yeh John a flat file is only another layer to slow or stop a n00b. bit like a car alarm for a car thief. it'll stop crap thiefs but provide a little comfort for the car owner.

  16. #16
    DF VIP Member Freddy's Avatar
    Join Date
    Mar 2006
    Location
    cuntsville
    Posts
    6,201
    Thanks
    3
    Thanked:        13
    Karma Level
    782

    Default Re: HTML Login?

    woops double post by mistake
    Last edited by Freddy; 26th September 2006 at 10:46 PM.

Similar Threads

  1. Windows login password help needed
    By Jaffa in forum PC Problems
    Replies: 4
    Last Post: 8th April 2003, 11:03 PM
  2. (X)HTML standards
    By graham.edmon in forum Website Coding & Graphics
    Replies: 0
    Last Post: 1st February 2003, 02:20 AM
  3. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  4. html question
    By p i m p in forum The Dog and Duck
    Replies: 27
    Last Post: 17th October 2002, 08:52 AM

Social Networking 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
  •