$action = ' . $action .'
'; $site_name_directory = "healthplanningcommission.org"; //$side_menu_location = 1 to move down side menu if photo_bar is shown. $side_menu_location = 1; $current_page = "Helpful Resources"; include("/var/www/vhosts/" . $site_name_directory . '/cgi-bin/include/check_session.inc'); include("/var/www/vhosts/" . $site_name_directory . '/cgi-bin/include/site_name.inc'); include("/var/www/vhosts/" . $site_name_directory . '/cgi-bin/include/db-config.inc'); //Define $ntd (number of entries to display on the page) //We'll show a different number of results dependent on whether we're showing results with lots of details or not. // Don't forget that if these are changed here, then they've got to be changed in the lines in businesses_search_results.inc that adjust $start when we're changing view. /* e.g. if($move == "forward") { $switch_start = $start -$ntd_display;} if($move == "back") { $switch_start = $start +$ntd_display;} */ //TEST //echo '$ntd = ' . $ntd . '
'; //echo '$action = ' . $action . '
'; //*** check that a submit button was clicked instead of just hitting "enter" ***** if(!$action){ //$submit_error_message = "
Because you hit the ENTER key instead of clicking a submit button, by default we are showing the Basic Search Results. In future, if you want the detailed results to be shown, please click the submit button that says \"Get Results With Details\" instead of just hitting the ENTER key. You can switch to detailed view now by clicking the link \"Switch to Results with Details\" at top right.
"; $action = "Get Basic Results"; //header ("Location: businesses_search.php?sid=$sid&input_error=1&submit_error=1"); } // END if(!$action) if(!$ntd){ if($action == "Get Results with Details"){ $ntd = "50"; $ntd_1 = $ntd; } elseif($action == "Get Basic Results"){ $ntd = "50"; } } // END if(!ntd) //TEST //echo '$ntd = ' . $ntd . '
'; //if($word && (!$field1 && !$field2 && !$field3 && !$field4 && !$field5 && !$field6 && !$field7)){ // header ("Location: businesses_search.php?input_error=1&sid=$sid&word_error1=1"); //exit; //} ?>