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

    Querystring to hidden input field

    Hi . I need help bigtime! I'm a newbie and have no idea what I'm doing anymore. I used to program over 5 years ago but I've forgotten too much without practice.

    Anyway, this is my URL
    http://www.zerodoubtwealth.com/test/...=create+wealth

    My goal is to put the value of "source" into the hidden source field, and the value of "kw" into the hidden kw field.

    Right now I have a script which parses it and writes it to the document....I do NOT want to write it to the VISIBLE document, I want the values written to the hidden field values.

    Thank you soooooooo much for your help....Vanessa

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Call this onload.
    Code:
    document.theFormName.theSourceFieldName.value = sourceVar;
    document.theFormName.theKWFieldName.value = kwVar;

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stuck

    I tried adding the code to the same url above but I still can't get it to work...please help!

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Use this script to retrieve the querystring in the URL.


  •  

    Posting Permissions

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