I've been reading about this all day and I'm just missing something
and I can't understand the relationship between HTML formfields/values
and cfhttp/cfhttpparam values? None of the many examples I've reviewed
showed how to get variables a user inputs into a form into the cfhttpparams.

Do I need to post a regular HTML form to, say, a component method and
then construct a cfhttp post with cfhttpparam = '#arguments.firstName#'
to get the HTML form values into a CFHTTP post to an external server?

In this case, I'm trying to figure out how to post data to Authorize.net.
Their example code uses cfhttp and cfhttpparams, such as:

<cfhttp method="Post" url="https://test.authorize.net/gateway/transact.dll";>

<cfhttpparam type="Formfield" name="x_first_name" value="John">
<cfhttpparam type="Formfield" name="x_last_name" value="Doe">
<cfhttpparam type="Formfield" name="x_address" value="1234 Street">
<cfhttpparam type="Formfield" name="x_state" value="WA">
<cfhttpparam type="Formfield" name="x_zip" value="98004">

What I'm not understanding is how to get these hard-coded values
into the cfhttpparam's.

Again, do I post a regular HTML form to a component method and construct
my cfhttp form for posting?

Clues, anyone?

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:352506
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to