Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts

    Need help with a script I was provided here.


    A few days ago I asked for help, please read that thread (only 2 posts in it)

    I was suplied the script there, but I don't know how to apply it to a page and make it work like I want, i'm a novice to javascripting :/ Any help in applying that script would be appreciated.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    The Netherlands, Baarn, Ut.
    Thanked 0 Times in 0 Posts
    Without any explanation from x_goose_x it's still a guess, but as far as i can tell (i'm not that good at javascript either) he supplied a script for decoding the query-string (the part after "&") from the URL the page was loaded with.
    I fail to see what happens with the info, though (looks like it's assigned to a couple of form fields; why?), and the rest of the document is left blank, but that's for you to fill in, of course!

    Creating a URL with query string can be accomplished without javascript using a form for entering userid and password, and submitting the form using method=get and action=theurlforthenextpage. After this "logon", the query string should be attached to all URL's following the initial page.

    A couple of remarks:
    1. This is a seriously unsecure way of passing logon information, because it's visible in the URL!
    2. I yet fail to see how you:
      • validate the userid and password;
      • record which userid and password are valid.


    Posting Permissions

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