What don't you like about cfdumping...? The reasons you are rejecting
this option can highly influence the complexity of what you are looking
for.
But if you just want a simple vanilla dump without the DHTML and colors
of cfdump... you can always do this.
cfoutput
cfloop
yup that works. Just have to rename some of the form fields so the HRO
person knows what it is.
-Original Message-
From: Duane [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 4:20 PM
To: CF-Community
Subject: RE: Form Dump
I haven't tried the code (could be typos
doh
that would work, just got to name the form fields something useful..
-Original Message-
From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 4:18 PM
To: CF-Community
Subject: Re: Form Dump
just loop over the keys in the form scope and output the key
4:20 PM
To: CF-Community
Subject: RE: Form Dump
I haven't tried the code (could be typos) but this should be close.
cfloop list=#form.fieldnames# index=thisField
cfoutput#thisField# = #evaluate(form.#thisField#)#/cfoutputbr/
/cfloop
-Original Message-
From: Scott Raley -ITC [mailto
just loop over the keys in the form scope and output the key name and key value?
On 12/27/07, Scott Raley -ITC [EMAIL PROTECTED] wrote:
I've got to put an employment application online and email this. Other then
cfdump'ing it to an email is there any easy way to dump all the form fields.
I've got to put an employment application online and email this. Other then
cfdump'ing it to an email is there any easy way to dump all the form fields.
Already tried a mailto cgi script and it wasn't working as well as I hoped.
Any php tag or other cf solution out there?
, 2007 5:14 PM
To: CF-Community
Subject: Form Dump
I've got to put an employment application online and email this. Other then
cfdump'ing it to an email is there any easy way to dump all the form fields.
Already tried a mailto cgi script and it wasn't working as well as I hoped.
Any php tag or other cf
Remember that the form scope is a struct, so you can loop over the struct:
cfif structKeyExists(form, fieldnames)
cfoutput
cfloop collection = form item = i
!--- if you don't want form.fieldnames outputed ---
cfif i neq fieldNames
#i#: #form[i]#br /
/cfif
-Community
Subject: Re: Form Dump
Remember that the form scope is a struct, so you can loop over the struct:
cfif structKeyExists(form, fieldnames) cfoutput
cfloop collection = form item = i
!--- if you don't want form.fieldnames outputed ---
cfif i neq fieldNames
#i
div id=results
h2Form Results/h2
!--- Check if form was submitted using POST ---
cfif LCase(cgi.request_method) eq post
cfoutput
pThe following FORM variables were submitted by br /
a href=#cgi.http_referer##cgi.http_referer#/a:/p
p
!--- Loop through field names and values ---
Apart from the obvious, as solutions have been given.
One has to remember that the cfdump tag is a debug tool, and really
shouldn't be used in situations like this.
Just an FYI for others who might read this.
On 12/28/07, Scott Raley -ITC [EMAIL PROTECTED] wrote:
I've got to put an employment
11 matches
Mail list logo