The quickest fix would be to pass your search parameters on the URL instead of 
FORM (action="get" instead of action="post" from the submitting page).

Then grab the current URL, minus the sort parameter, to re-use for the next 
output.

<cfset theUrl = cgi.script_name & "?" & left(cgi.query_string, 
findNoCase("&sortby=", cgi.query_string) - 1)/>

Now:

<a href="#theUrl#&SortBy=Category">Category</a>
.....etc.

This will retain the search parameters (since they're on the URL).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250790
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to