Good title huh?.Bet you know what this is about.. I was wondering how one can only show just a few database fields in the drop down list and not all of them when someone clicks the sort by drop down list under search options.
Jul 13, 1999, 6:59 PM
Veteran / Moderator (8669 posts)
Jul 13, 1999, 6:59 PM
Post #2 of 4
Views: 1867
Yep. You'll have to make your own select field. The structure is
<OPTION>---
<OPTION value="field number">Field Name
</SELECT>
So, if you wanted people to be able to sort by
Name, which is field number 1
and
City, which is field number 4
you would use
<OPTION>---
<OPTION value="2">Name
<OPTION value="4">City
</SELECT>
Make sense?
------------------
JPD
Code:
<SELECT NAME="sb"> <OPTION>---
<OPTION value="field number">Field Name
</SELECT>
So, if you wanted people to be able to sort by
Name, which is field number 1
and
City, which is field number 4
you would use
Code:
<SELECT NAME="sb"> <OPTION>---
<OPTION value="2">Name
<OPTION value="4">City
</SELECT>
Make sense?
------------------
JPD