Sorting on hidden fields should be even easier, shouldn't it?
Now you don't need to create a select field that fills the options from the database's displayed fields.
Instead you create your two hidden fields for each sort (sb#, so#) where # indicates the order of the sort. Set the value of sb# to the hidden field name. eg.
<input type="hidden" name="so1" value="ascend">
Hope that's what you're trying to do. Let me know if I'm missing something obvious.
------------------
Don Mitchinson
Now you don't need to create a select field that fills the options from the database's displayed fields.
Instead you create your two hidden fields for each sort (sb#, so#) where # indicates the order of the sort. Set the value of sb# to the hidden field name. eg.
Code:
<input type="hidden" name="sb1" value="ID"> <input type="hidden" name="so1" value="ascend">
Hope that's what you're trying to do. Let me know if I'm missing something obvious.
------------------
Don Mitchinson