| php, jquery chain filters php and jquery chain filters for website |
abidshahzad4u

msg:4303572 | 10:36 am on Apr 25, 2011 (gmt 0) | Hi I have to develop the chain filters mechanism for one of my website. But don't know how to do it. I need only concept or a little example. this thing is present on many site like job searching. When someone click on the city name, jobs related to the city are shown. then he click salary range, jobs with that salary range appears within the selected city. And any time he can clear that filters. How this can be done? regards Abid Shahzad
|
rocknbil

msg:4303659 | 4:02 pm on Apr 25, 2011 (gmt 0) | | click on the city name, jobs related to the city are shown. then he click salary range, jobs with that salary range appears within the selected city. |
| $output = form_handler();
function form_handler() { $output=null; if (isset($_POST['state'])) { // cleanse it and check for empty too, for example only if isset($_POST['city'])) { if isset($_POST['salary'])) { $output = display_listings(); } else { $output = get_salary_selector(); } } else { $output = get_city_list(); } } else { $output = get_state_list(); } return $output; }
|
abidshahzad4u

msg:4303986 | 7:51 am on Apr 26, 2011 (gmt 0) | Thanks for your help.
|
|
|