Try this...
<cfoutput>
<cfloop list="#GetClientVariablesList()#" index="i" delimiters=",">
#i#: Evaluate("CLIENT." & #i#)<br>
</cfloop>
</cfoutput>
Ade
-----Original Message-----
From: Will Swain [mailto:will@;hothorse.com]
Sent: 05 November 2002 17:23
To: CF-Talk
Subject: RE: outputting all client vars
thats the one Adrian!!
How would I dislay the value of the variables too, as that just gives me the
variable names?
Thanks a bunch
will
-----Original Message-----
From: Adrian Lynch [mailto:adrian.l@;thoughtbubble.net]
Sent: 05 November 2002 17:09
To: CF-Talk
Subject: RE: outputting all client vars
I don't think you can view them like that.
Try
<cfoutput>
<cfloop list="#GetClientVariablesList()#" index="i" delimiters=",">
#i#<br>
</cfloop>
</cfoutput>
See if that works.
Ade
-----Original Message-----
From: Will Swain [mailto:will@;hothorse.com]
Sent: 05 November 2002 16:57
To: CF-Talk
Subject: outputting all client vars
Hi all,
I've written some basic debug code to output all url, form, and session
variables on a page:
URL VARS:
<br><br>
<CFLOOP collection="#URL#" ITEM="URLVar">
<cfoutput>#URLVar# - #URL[URLVar]# <br></cfoutput>
</cfloop>
<br><br>
FORM VARS:
<br><br>
<CFLOOP collection="#FORM#" ITEM="FORMVar">
<cfoutput>#FORMVar# - #FORM[FORMVar]# <br></cfoutput>
</cfloop>
<br><br>
CGI VARS:
<br><br>
<CFLOOP collection="#CGI#" ITEM="CGIVar">
<cfoutput>#CGIVar# - #CGI[CGIVar]# <br></cfoutput>
</cfloop>
<br><br>
SESSION VARS:
<br><br>
<CFLOOP collection="#SESSION#" ITEM="SESSIONVar">
<cfoutput>#SESSIONVar# - #SESSION[SESSIONVar]# <br></cfoutput>
</cfloop>
nice and straight forward. BUT, I want the same thing for client variables.
However, trying
CLIENT VARS:
<br><br>
<CFLOOP collection="#CLIENT#" ITEM="CLIENTVar">
<cfoutput>#CLIENTVar# - #CLIENT[CLIENTVar]# <br></cfoutput>
</cfloop>
<br><br>
just throws up the error:
Error Diagnostic Information
An error occurred while evaluating the expression:
"#CLIENT#"
Error near line 37, column 22.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm