This content has been marked as final. Show 3 replies
I made two changes to your code.
Here's the new code with the two changes...
<cfhttp url=" http://localhost/receive.cfm" method="post" redirect="yes">
<cfhttpparam name="SessionID" value="#SessionID#" type="FormField">
<cfhttpparam name="Amount" value="#Amount#" type="FormField">
Perhaps there was confusion about how the redirect attribute works?
Or perhaps I miss-understood what you are trying to achieve.
My interpretation of what you wanted was to allow the page doing the posting
to be redirected vs allowing the page receiving the post to be redirected.
I think the redirect attribute allows the page receiving the post to be redirected?
Basically what i want to achieve is the same effect as when a normal form is posted.
post.cfm would be the page with the form on, and receive.cfm would be the output page, displaying the variables sent from receive.cfm
I cant simply display the contents of receive.cfm in post.cfm using cfhttp.fileContent, as receive.cfm is going to be on a secure server.