Hi Jeremy. The http post you are doing here will post the form field project with the value 777 to index.cfm, the cfoutput will output a form field in the same script called project, these two things are unrelated. The CFHTTP will return the content of index.cfm in cfhttp.filecontent, but as a single string. I'm not really sure I understand what you are trying to archive with this code.
Kind regards, Andrew. Jeremy Bunton wrote: > Hello, I want to use cfhttp to post a form var back to the same page > (index.cfm posting to index.cfm) Like below. I get form.project undefined > with this. Should this not work? > What I need to do is set a form var without a from being on the page. I > thought this would be an elegant way of doing so. > > <cfhttp method="Post" url="index.cfm"> > <cfhttpparam type="Formfield" value="777" name="project"> > </cfhttp> > > <cfoutput>#form.project#</cfoutput> > > Jeremy > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237605 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

