Author: FCP_88 | Posted on: 9/22/2009 10:52:28 AM | Views : 445

Hi.
I am making a site for a fantasy online book library. I have a page for searching for books. In that page i have 3 textboxes (search by title, search by author and search by publisher).
I want that if the user enters text only in author field it will only search by author but if the user enters text in author and title for example i want to searh the db by both fields.
My question is: how can i see what fields where populated by the user?
Of course i can make various if clauses (if(tbauthor == null && tbtitle =! null) etc but there is any easier way?
Becuase if i have 10 search criteria it would be impossible to match all the possibilities:

This is not a programming question but a logic question.





...

Go to the complete details ...