Welcome to WebmasterWorld Guest from 54.147.158.215

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php, jquery chain filters

php and jquery chain filters for website

     
10:36 am on Apr 25, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:May 11, 2009
posts: 74
votes: 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
4:02 pm on Apr 25, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 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;
}
7:51 am on Apr 26, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:May 11, 2009
posts: 74
votes: 0


Thanks for your help.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members