Gossamer Forum
Home : Products : Links 2.0 : Customization :

Here is how to make your search for multiple fields and be able to not fill all in.

Quote Reply
Here is how to make your search for multiple fields and be able to not fill all in.
If you are looking for a fix that will allow you to put multiple fields on a search form, allow the user to only fill in one or two field (i.e. Fill in SSN and Birthdate but leave blank Name, Address, Phone Number, etc...) leaving the others blank and NOT get a Failed Search message, then here is the fix (compliments of Alex).

"It's an easy change. Edit search.cgi and around line 201:"
Code:
for (0 .. $#db_cols) {
exists $in{$db_cols[$_]} and (push (@field_search, $_));
}
"remove the word 'exists' and it will work as you describe."

------------------
TheByrdMan Out!

//-Tweet-\\