Apr 28, 1999, 9:14 PM
Veteran / Moderator (8669 posts)
Apr 28, 1999, 9:14 PM
Post #2 of 5
Views: 1846
If you don't want to use the "match any" "keyword" or other of the search options, just remove
&html_search_options;
from html_view_search
You can also remove it from html_delete_search and html_modify_search.
If you want to only be able to search on a few fields instead of all of them, copy the html_record_form and paste it as another subroutine. Call the new one
sub html_search_form
Delete all the fields you don't want included on the search form. In html_view_search, change
&html_record_form();
to
&html_search_form();
You can do the same in html_delete_search and html_modify_search.
You say you want the results displayed in alphabetical order. You'll have to state which field you want the records to be sorted by.
In your html_search_form, you can add a hidden field to set the field to sort by.
<input type="hidden" name="sb" value="1">
Change the 1 above to the number of the field you sort by.
The default sort order is ascending, so you don't have to worry about that.
------------------
JPD