FORM is a structure that contains all HTTP POST fields, and you can loop
through it easily.

--- Ben


-----Original Message-----
From: Richard Crawford [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 9:15 PM
To: CF-Talk
Subject: There's got to be a way around this

It seems that on every Cold Fusion page that processes variables from a
previous page -- say a form and the page that processes the form -- every
variable on the form must be accounted for.  This is fine if the form is
unchanging, but if the form is dynamic and might change every time it's
loaded, the number and name of the variables that it passes to the
processing page may change.

In PHP you can cope with this quite nicely by directly accessing the
HTTP_POST[] array, casting it to an object and looping through the
properties, but I can't find a similar way to do that in Cold Fusion.  In
Cold Fusion, it looks like I have to use <CFPARAM var=value> for every
single possible variable that might come from the form page.  Is there a way
around that?

--
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207497
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to