1 Reply Latest reply on Sep 4, 2007 5:49 PM by cf_dev2

    CGI variables and CFOUTPUT

    xcoldnet
      I have this code which show me what CGI variables exists, however I wish to show also the content of the CGI vrialbe if exist but I don't know how "to tell" the CF server that in the second CFOUTPUT I wish to display the value of the CGI variables instead of the text "CGI.whatever", I am sure the trick is some function, the question is.... which one?


      <cfloop index = "ListElement" list = "ALL_HTTP,AUTH_TYPE,CONTENT_LENGTH,CONTENT_TYPE,GATEWAY_INTERFACE,HTTP_ACCEPT,HTTP_HOST,H TTP_REFERER,HTTP_USER_AGENT,PATH_INFO,PATH_TRANSLATED,QUERY_STRING,REMOTE_ADDR,REMOTE_HOST ,REMOTE_IDENT,REMOTE_USER,REQUEST_BODY,REQUEST_METHOD,SCRIPT_NAME,SERVER_NAME,SERVER_PORT, SERVER_PROTOCOL,SERVER_SOFTWARE">


      <cfif cgi.ListElement IS NOT "">
      <cfoutput>CGI.#ListElement#</cfoutput> variable exists: value <cfoutput>CGI.#ListElement#</cfoutput> <br /><br />
      <cfelse>
      <cfoutput>CGI.#ListElement#</cfoutput> variable does not exist<br /><br />
      </cfif>

      </cfloop>