--------------CCC37FE3170BA361B9DA638E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
There's a CGI structure that you can loop through to get all CGI variables; like
Application, Session, etc. Here's a bit of code we use:
(The structure is available on at least CF 4.5.1; not sure about other versions. I'll
ask the person who wrote this sample.)
<CFOUTPUT>
<table>
<cfloop collection=#CGI# item="VarName" >
<CFSET MyVar=Evaluate("CGI.#VarName#")>
<tr><td valign="top">#VarName#</td>
<cfif IsQuery(MyVar)>
<td><b>Complex Variable: Query</b></td></tr>
<cfelseif IsStruct(MyVar)>
<td><b>Complex Variable: Structure</b></td></tr>
<cfelse>
<td><b>#HTMLEditFormat(Evaluate("CGI.#VarName#"))#</b></td></tr>
</cfif>
</cfloop>
</table>
</cfoutput>
HTH,
-- David Lakein
Marc Funaro wrote:
> Off topic, and I am sorry. I need to know if there's a way to obtain a list
> of all the available CGI variables, kinda like you can do with form fields.
> Anyone got a quick cfloop or something similar?
>
> Tanks in advance
>
> Marc
>
> ~~~~~~~~~~~~~~~~~~~~
> Marc Funaro, President
> Advantex Technical Consulting Services
> 5547 State Highway 12
> Norwich, NY 13815
> Phone: 607-336-6895
> Fax: 801-383-4864
> Internet: http://www.advantex.net
> Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> "You know, I have one simple request... and that is,
> to have SHARKS with Frickin' LASER BEAMS attached
> to their HEADS..."
>
> --Dr. Evil
>
> *******************************************
>
> ------------------------------------------------------------------------------
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
============================================================
David Lakein -- ColdFusion, Visual Basic, Math+Statistics programmer
TeraTech Inc. - Tools for Programmers(tm)
100 Park Ave, Suite 360, Rockville MD 20850 USA
Voice: +1-301-424-3903
ICQ 46062028
Web: http://www.teratech.com
Email: mailto:[EMAIL PROTECTED]
============================================================
--------------CCC37FE3170BA361B9DA638E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
There's a CGI structure that you can loop through to get all CGI variables;
like Application, Session, etc. Here's a bit of code we use:
<p>(The structure is available on at least CF 4.5.1; not sure about other
versions. I'll ask the person who wrote this sample.)
<p><CFOUTPUT>
<br><table>
<br><cfloop collection=#CGI# item="VarName" >
<br> <CFSET MyVar=Evaluate("CGI.#VarName#")>
<br> <tr><td valign="top">#VarName#</td>
<br> <cfif IsQuery(MyVar)>
<br> <td><b>Complex Variable:
Query</b></td></tr>
<br> <cfelseif IsStruct(MyVar)>
<br> <td><b>Complex Variable:
Structure</b></td></tr>
<br> <cfelse>
<br>
<td><b>#HTMLEditFormat(Evaluate("CGI.#VarName#"))#</b></td></tr>
<br> </cfif>
<br></cfloop>
<br></table>
<br></cfoutput>
<p>HTH,
<br>-- David Lakein
<p>Marc Funaro wrote:
<blockquote TYPE=CITE>Off topic, and I am sorry. I need to know if
there's a way to obtain a list
<br>of all the available CGI variables, kinda like you can do with form
fields.
<br>Anyone got a quick cfloop or something similar?
<p>Tanks in advance
<p>Marc
<p>~~~~~~~~~~~~~~~~~~~~
<br>Marc Funaro, President
<br>Advantex Technical Consulting Services
<br>5547 State Highway 12
<br>Norwich, NY 13815
<br>Phone: 607-336-6895
<br>Fax: 801-383-4864
<br>Internet: <a href="http://www.advantex.net">http://www.advantex.net</a>
<br>Email: [EMAIL PROTECTED] <<a
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>>
<p> "You know, I have one simple request... and
that is,
<br> to have SHARKS with Frickin' LASER BEAMS attached
<br> to their HEADS..."
<p> --Dr. Evil
<p>*******************************************
<p>------------------------------------------------------------------------------
<br>To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.</blockquote>
--
<br>============================================================
<br>David Lakein -- ColdFusion, Visual Basic, Math+Statistics programmer
<br>TeraTech Inc. - Tools for Programmers(tm)
<br>100 Park Ave, Suite 360, Rockville MD 20850 USA
<br>Voice: +1-301-424-3903
<br>ICQ 46062028
<br>Web: <a href="http://www.teratech.com">http://www.teratech.com</a>
<br>Email: <a
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>
<br>============================================================
<br> </html>
--------------CCC37FE3170BA361B9DA638E--
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.