The following reads all of the passed field names and evaluates the value of
those fields.
<CFLOOP INDEX="Fields" LIST="Form.FieldNames">
<CFSET val = Evaluate(Fields)>
<CFOUTPUT>
Form Name = #Fields#
Value = #val#
</CFOUTPUT>
</CFLOOP>
Dave
----- Original Message -----
From: "webmaster" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 12:42 PM
Subject: form fields
Just wondering if anyone has bright idea for this little problem that I
have.
I'm receiving data from another site sent via form data to my coldfusion
routine that teh takes the data (e.g. #form.customer#,
#form.backupdate#, etc.)
Problem is I don't always know what form data will be sent, sometimes
they wony include the backupdate for a certain customer.
At the moment I just have a load of isdefined statements - not pretty
but it works. Now I'm told thay variables will be added - and that the
names might be dynamically created (Please don't ask me where that bit
of wisdom came from!)
Any one have any ieas how I can tell what variables are in the FORM ?
TIA
Richard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists