Web Analytics Made Easy -
StatCounter Need help with a script I was provided here. - CodingForum


No announcement yet.

Need help with a script I was provided here.

  • Filter
  • Time
  • Show
Clear All
new 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
    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.