Forum Moderators: coopster
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.
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;
}