Ok... that's what I was thinking must be going on.
The CFHTTP page was basically a "receptor" or processing
page that acted on the variables the form sent. In this
case, passing them on to whatever URL was going to receive
the posted data.

Right?

-----Original Message-----
From: Dave Watts [mailto:[email protected]] 
Sent: Tuesday, September 11, 2012 10:21 PM
To: cf-talk
Subject: Re: Not understanding the relationship between html form values and
cfhttpparam values


> So, how does the cfhttpparam above get the #form.fname# value? Does I use
> a regular HTML form and submit the values to another page that receives
> and posts them via cfhttp? (If that's true, then I'll now understand how
> the value of a select formfield gets into a cfhttpparam...)

I think you're overthinking this. CFHTTP and CFHTTPPARAM are just like
any other CFML tags. You can use them wherever you want to, but they
execute on the server, and have access to whatever variables your
program happens to have. If you want the user to fill out a form, then
you want to send the form data to another web site, you'd put CFHTTP
and CFHTTPPARAM in your action page - just like you'd put CFQUERY in
your action page if you wanted to create or update a database record
based on form data provided by a user.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352512
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to