lance667 Posted September 16, 2002 Posted September 16, 2002 Does anybody have the exact syntax required to do a FIND based on 2 or more pop-up lists? I have two pop-up lists on my website. The first has the following code: <select name ="select" size="1"> <option>choiceone</option> <option>choice2</option> <option>choice3</option> </select> The second pop=up list has this code: <select name ="select" size="1"> <option>apples</option> <option>pears</option> <option>grapes</option> </select> What code do I attach to a "search" button so it will search on the two selections above? Thanks
Garry Claridge Posted September 17, 2002 Posted September 17, 2002 You can include a: <input type="hidden" name="-lop" value="or"> Hope this helps. Garry
lance667 Posted September 17, 2002 Author Posted September 17, 2002 Im still a bit confused with the overall syntax. I'm using a form like this: (I copied this from a manual so I'm not sure that everything in it applies) <FORM ACTION="FMPro" METHOD="POST"> <INPUT TYPE="hidden" NAME="-db" VALUE="digital assets.fp5"> <INPUT TYPE="hidden" NAME="-lay" VALUE="searchlayout"> <INPUT TYPE="hidden" NAME="-format" VALUE="searchresults.htm"> <INPUT TYPE="hidden" NAME="-error" VALUE="error.htm"> <INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-CurrentToken]"> <INPUT TYPE="hidden" NAME="SUBJECTS::sex" VALUE="[FMP-CurrentToken]"> then, I have several pop-up windows: <select name="ETHNICITY BOX" size="1"> <option selected>-Choose-</option> <option value="African-American">African-American</option> <option value="African-American/Japanese/Caucasian">African-American/Japanese/Caucasian</option> <option value="Asian">Asian</option> <option value="Asian/Caucasian">Asian/Caucasian</option> <option value="Hispanic/Caucasian">Hispanic/Caucasian</option> <option value="Mexican-American/Caucasian">Mexican-American/Caucasian</option> </select> and then my search button: <input type="submit" name="-find" value=" Search "> but I'm not getting any results. I know its just a matter of putting it all in the right order
Garry Claridge Posted September 17, 2002 Posted September 17, 2002 Order is not a problem. Looking at what you now have you do not need "-lop=or". To see what is happening go to the database after your attempt to search and check the search details with "Modify Last Find" from the "Records" menu. This will give you an idea of what is being searched for. Good Luck. Garry
Recommended Posts
This topic is 8442 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now