Results 1 to 3 of 3

Thread: QueryString.count

  1. #1
    Join Date
    Dec 1969

    Default QueryString.count

    Hi<BR><BR>If i have a querystring with several items in it of which one of those items can be a multiple select.<BR><BR>E.G. ...?name=Tom&fruit=banana&fruit=peach&fruit=apple< BR><BR>1) From a select element how would I send all the items selected in the querystring or is this automatic ?<BR>2) How would i find the number of items in the querystring belonging to fruit.<BR>3) How would I extract each fruit item into an array on the asp script? I am thinking that I need to use a "for each item" loop...<BR><BR>TIA<BR>

  2. #2
    Join Date
    Dec 1969

    Default Also....

    If I know the number of items in a queryString how do i extract an item if I know its position in the queryString but not its name.<BR><BR>E.G. The first item in the querystring is the domain/URL but it is not a name/value pair, how do I extract this to a variable ?<BR><BR>TIA and sorry for the pile of questions...

  3. #3
    lagerBoy Guest

    Default RE: QueryString.count

    &#062;E.G. ...?name=Tom&fruit=banana&fruit=peach&fruit=apple< BR><BR>So in you example you might want to know how many peaches you have?<BR><BR>For each yourStuff in Request.QueryString("fruit")<BR><BR> Response.Write yourStuff & "<BR>"<BR><BR>Next<BR><BR>

Posting Permissions

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