Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ASP 3.0 : Multiple Search Fields Signup · Login
Author Thread
Multiple Search Fields
Posted in tutorial: An ASP Tutorial to create your own Database driven Search Engine
·  Cracksmurf
User
Joined: 29 Sep 2003
Total Posts: 2

Multiple Search Fields

Posted: 29 Sep 2003
First of all I apologize for asking what is most likely a question with a very obvious answer. But seeing how I just started learning how to use asp by viewing this tutorial I am surprised I was even able to get the search engine up and running. Ok now on to the real question.

I am attempting to use multiple search fields.. i.e. name, male, user id, voice type, etc. for a user database. I attempted to create multiple fields on the search page and have them all set up under the look_for name. I think that is what my problem was. I would probably need to have each field with a different name i.e. look_for1, look_for2 etc. and then have some code that puts all the fields that are not blank into look_for for the search.asp to do its work.

But as I said I am very new to this. If someone could either please tell me the correct way to do this, or where I could try find this out on my own. Thanks.
·  Cracksmurf
User
Joined: 29 Sep 2003
Total Posts: 2
Forgot
Posted: 29 Sep 2003
Oh yeah. I forgot to state that I did manage to set the database and the search does properly bring up the right results. The only problem is that if you leave a field blank it thinks of it as a space.. and all the items in the database have a space in them. so it will result in all items being retrieved in the search if you leave on field blank.
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
1 Visitor

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.