Results 1 to 5 of 5

Thread: "Dummy" Password page

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default "Dummy" Password page

    Hi All,

    Can any one help me find a script to create a "dummy" password script that as long as you place any number on the field it lets you proceed to a certain page, but if you enter say... random letters it does not.

    Any help would be greatly appreaciated.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That's exactly the same as a regular password page, except that in the verification rather than matching X=Y, you just use "is number"(X).

    Javascript won't be secure at all, so if someone looks at the source code they will be able to figure out what's going on. Also, it's not possible to use Javascript to require them to fill it out (since they can find the URL in the source code, among other things).

    So, in conclusion, you can do this, but it will not be very secure at all.

    The basic idea here is to get the value from the text box and check if it's a number. If it is, forward the user.

    But this is no different than a normal "password" script in JS, so you should be able to fairly easily adapt one if you can find one on google, etc.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks...

    If I were to use this with simply HTML/Java, can you please provide a sample?

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by probill3 View Post
    Thanks...

    If I were to use this with simply HTML/Java, can you please provide a sample?

    And reason #34,789,876 I stay out (or TRY hard too) of the JavaScript board.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't have a sample, but as I said-- look for a "Javascript password" script and find the line where it matches "stored password" to "submitted password". Just replace that with, probably, this:
    if (!NaN(submittedpassword)) { ...it's ok... }
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •