Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP filter list from other list's selection

New Here ,
May 17, 2010 May 17, 2010

I want to filter one list from the selection of the first list. The second list will use a recordset to find the records to display that match an integer field with the number value of the first list.

This seems like it should simply work by using a simple mode of the recordset that compares the value of the the field in this recordset with the Form Variable that equals "lstLevel", the name of the first list. The form action = the current page. Then I have a submit button on the form, but when I press it nothing happens. What am I missing?

TOPICS
Server side applications
407
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 17, 2010 May 17, 2010

I tried doing the same thing when going to another page and it works. So my question is now, how do I get the same result on the same page so I can filter severl lists on one page before proceeding to the next page?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 18, 2010 May 18, 2010
LATEST

You will need to create a condition to test for the submitted form.

if the form has been submitted > do the filtering

else show the form.

HTH

-Rob B

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines