> <cfhttpparam type="Formfield" name="x_first_name" value="#form.fname#">
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...) Is my thinking correct? Close? Even in the ballpark? Thanks for the feedback! (Know of any "start-to-finish" tutorials anywhere that shows all the connections? Everything I've seen just starts with cfhttp and cfhttpparams, leaving me to wonder how those hard-coded values got there in the first place...) Rick -----Original Message----- From: Brian Thornton [mailto:br...@cfdeveloper.com] Sent: Tuesday, September 11, 2012 9:20 PM To: cf-talk Subject: Re: Not understanding the relationship between html form values and cfhttpparam values <cfhttpparam type="Formfield" name="x_first_name" value="#form.fname#"> should do the trick. On Tue, Sep 11, 2012 at 9:11 PM, Rick Faircloth <r...@whitestonemedia.com> wrote: > > 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:352508 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm