#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Chicago, IL
    Posts
    85
    Rep Power
    14

    Question Refining search results


    I have an asp results page that returns results depending on their search criteria. I'd like to give them the option of clicking on check boxes in order to narrow down their results. Do I put the <form> tags outside these results? Because if it returns many results, will it work if each result has the same select name?
    Hope you are having a good day.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    pinoy
    Posts
    15
    Rep Power
    0
    try to save your sql statement in a session then just append the search criteria as they try to narrow it down
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Canada - Egypt
    Posts
    60
    Rep Power
    12
    I think if the form has more than one select with the same name ... when it gets submitted/posted

    The recieving page recieves an array in the same order they are presnted on the page

    (e.g.)

    <FORM>
    <SELECTorINPUT name = "a" value = "s">
    <SELECTorINPUT name = "a" value = "v">
    <SELECTorINPUT name = "a" value = "q">
    </FORM>


    lets say it is posted,

    the Request.Form("a") will be an array

    where

    arr = Request.Form("a")

    arr(0) will be s
    arr(1) will be v
    arr(2) will be q

    I am not 100% sure about this .. if I am wrong please correct me.
    I hope this is of any help to anyone.

    Yassoor
    http://www.WebsitesCreation.ca
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Chicago, IL
    Posts
    85
    Rep Power
    14

    Yep


    Thanks everyone. I got it.
    Hope you are having a good day.

IMN logo majestic logo threadwatch logo seochat tools logo