homepage Welcome to WebmasterWorld Guest from 54.197.15.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

5+ Year Member



 
Msg#: 4303570 posted 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

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



 
Msg#: 4303570 posted 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

5+ Year Member



 
Msg#: 4303570 posted 7:51 am on Apr 26, 2011 (gmt 0)

Thanks for your help.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved