Stepping through passed variables

Results 1 to 3 of 3

Thread: Stepping through passed variables

  1. #1
    Isaac Guest

    Default Stepping through passed variables

    How do I step through variables that are passed by GET or POST? I don't want to hard-code any values because they might change at any time.

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Stepping through passed variables

    What do you mean step through<BR><BR>do you mean step through each item in the reqest.form??

  3. #3
    Isaac Guest

    Default RE: Stepping through passed variables

    Say I have something like this:<BR><BR>dim myvar<BR>myvar = Request.Querystring("myvar")<BR>Response.Write(myv ar) <BR><BR>What if I didn&#039;t know what myvar was called? What I want to do is loop through Request.Querystring or Request.Form and get all the variable names and values that have been passed to the script. (Otherwise known as key/value pairs) The variable names that will be passed could change at any time, and I don&#039;t want to have to go in to the script and hard-code new variables each time that happens.

Posting Permissions

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