I have a forum page where I want the user to be able to choose from asc 
or desc order. I cannot get it to work except in 1 link, I need to check 
the value of the variable for the query



Here is what I have so far, I need to get all the links to work 
independent of eachother.


<cfset sortBy = 
iif(IsDefined("URL.sortBy"),"URL.sortBy",DE("TitleAsc"))>
<cfset sortBy = iif(sortBy EQ "TitleAsc",DE("Desc"),DE("Asc"))>



<a href="dsp_view_topics.cfm?sortBy=Title#sortBy#" 
class="whiteUnderline">Discussion</a>
<a href="dsp_view_topics.cfm?sortBy=Auth#sortBy#" 
class="whiteUnderline">Posted By</a>
<a href="dsp_view_topics.cfm?sortBy=#sortBy#" 
class="whiteUnderline">Last Post</a>


Thanks in advance



Doug

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to