I have a hidden field (Modified) which defaults to the system date, and is updated on edit. It is not available to sort on - I assume because it is "hidden" I would like to be able to sort on it so the most recently updated records are displayes first.
May 26, 1999, 8:36 PM
Veteran / Moderator (8669 posts)
May 26, 1999, 8:36 PM
Post #2 of 2
Views: 342
If you want all of your searches to be sorted on the same field, take out
<SELECT NAME="sb">
<OPTION>---
~; for (my $i =0; $i <= $#db_cols; $i++) { print qq~
<OPTION VALUE="$i">$db_cols[$i]</OPTION>\n~ if ($db_form_len{$db_cols[$i]} >= 0); } print qq~
</SELECT>
from html_search options, and instead use
<input type="hidden" name="sb" value="3>
Replace the 3 with the number of the field you want to sort by.
------------------
JPD
Code:
Sort By: <SELECT NAME="sb">
<OPTION>---
~; for (my $i =0; $i <= $#db_cols; $i++) { print qq~
<OPTION VALUE="$i">$db_cols[$i]</OPTION>\n~ if ($db_form_len{$db_cols[$i]} >= 0); } print qq~
</SELECT>
from html_search options, and instead use
<input type="hidden" name="sb" value="3>
Replace the 3 with the number of the field you want to sort by.
------------------
JPD

