Search - require entry vs return all
I am wanting to require a selection in order to return results verses returning all results if a selection is not made. I have attached my results page which is both the search and results.
I am wanting to require a selection in order to return results verses returning all results if a selection is not made. I have attached my results page which is both the search and results.
Set the default WHERE clause to 0 != 0:
double click the DataAssist Search server beahvior, in the Default Where enter " 0 != 0"
member_directory_Results_measurer.php
member_directory_Search_measurer.php
Thanks!
change line 14 of the results page:
if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {
to:
if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "" && ((isset($_GET["S_MS1"]) && $_GET["S_MS1"] != "") || (isset($_GET["S_MS2"]) && $_GET["S_MS2"] != "") || (isset($_GET["S_MS3"]) && $_GET["S_MS3"] != "")))) {
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.