Gossamer Forum
Home : Products : DBMan : Installation :

Eliminating some sort by choices in search otptions.

Quote Reply
Eliminating some sort by choices in search otptions.
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.
Quote Reply
Re: Eliminating some sort by choices in search otptions. In reply to
Yep. You'll have to make your own select field. The structure is

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





Quote Reply
Re: Eliminating some sort by choices in search otptions. In reply to
Thanks JPdeni... It is much easier than I thought it would be and makes perfect sense.. I like to throw in the easy questions to give your massive brain a breather...
Craig (wave3)
Quote Reply
Re: Eliminating some sort by choices in search otptions. In reply to
 !

I appreciate it.

(BTW, thanks for coming by my password test db.)


------------------
JPD