Actually wouldn't that return the value rather than the variable?
Change the "=" to a "&" to get the variable and value then use
It to get the variable using ListGetat with the "="
<cfset mylasturlvar = "" />
<cfif rcdset.recordcount is 0>
<cfset mylasturlvar = listlast(cgi.query_string,"&") />
<cfset listgetat(mylasturlvar,1,"=")>
</cfif>
-----Original Message-----
From: Kris Jones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 22, 2006 8:04 AM
To: CF-Talk
Subject: Re: Getting the last url variables
Not sure what your menu issue is, but to get the last URL variable if
your recordset is empty might look something like this:
<cfset mylasturlvar = "" />
<cfif rcdset.recordcount is 0>
<cfset mylasturlvar = listlast(cgi.query_string,"=") /> </cfif>
Cheers,
Kris
> I am trying to find out how to set the last url variable on a page if
the query I am running has no recordcount. Basically I am populating a
table with categories from the database and when there is no more
records the menu dissapears. This is not what I want. When there is no
records for a particular set of categories, I just want that menu to
stay on the page unless the user clicks back to the previous menu. Any
Ideas?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:250578
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4