Hello, all,
I'm working on a doctors database. The list currently displays automatically in alphabetical order when I load the list page. At the top of the page, I have several options to narrow those results down via the built-in search functions.
However, any time a user lands on that initial page, they see the same set of doctors. As you can imagine, those doctors are going to get a lot of hits from people who are too lazy to use the search engine. That doesn't sit well with the other doctors.
What I'm trying to do is set the page to show as blank with only the search options when you first land on it, and then display results to the search only when options are picked. This way, all the doctors of a certain search result have a fair shot at being seen instead of some doctors always being seen on a landing page before a search is even entered.
Is there a way for me to use an if statement to check the search options to see if there was a value entered? That way, if there is no value, it would load a blank page, but, if there is a value, it would load the results of that value.
Thank you in advance!
-----
~Jessica Sullivan, Crystal Realm Designs.