www.webdeveloper.com
Results 1 to 10 of 10

Thread: login script

  1. #1
    Join Date
    Feb 2009
    Posts
    7

    login script

    Looking for a script that'll let a user generate a unique login, and then add that user & passwd to a server. Needs to check for existing users, and force some passwd complexity would be good too. Like an alpha numeric passwd

  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Javascript doesn't do server work.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  3. #3
    Join Date
    Feb 2009
    Posts
    7
    how do forums register new users then?

  4. #4
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Using server side languages like PHP, ASP or Java.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  5. #5
    Join Date
    Feb 2009
    Posts
    7
    i could have it check an id file, then have a server script add new users added to the id file?

  6. #6
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    The file would be server side, the javascript client side. You cannot edit things server side without a server side language.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  7. #7
    Join Date
    Feb 2009
    Posts
    7
    can php do such a task then?

  8. #8
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Yes, PHP can achieve such a thing, although I would recommend using a database as well, you could possibly do it with a text file, although it does make it far harder to avoid duplicates.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  9. #9
    Join Date
    Feb 2009
    Posts
    7
    what sorta of or kind of database would you recommend

  10. #10
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Well, PHP normally works with MySQL, but you can use pretty much any kind of database you want.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles