Hi
Im trying to use cfhttp to post some variables to a new page. I then want the new page to be displayed, so i am using redirect="yes", but it is not redirecting, just staying on the posting page. Here is the code i have in the posting page and the redirect page:
post.cfm
<cfhttp url="receive.cfm" method="post" redirect="yes">
<cfhttpparam name="SessionID" value="#SessionID#" type="FormField">
<cfhttpparam name="Amount" value="#Amount#" type="FormField">
</cfhttp>
receive.cfm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<cfoutput>
#Amount#
</cfoutput>
</body>
</html>
ive read somewhere that you need to return location in a header or something, but i cant find any examples or explanations. Does anyone know how this is done? Also once I am on the redirected page, how do i access variables sent from the post page?
Thanks
Rob
Im trying to use cfhttp to post some variables to a new page. I then want the new page to be displayed, so i am using redirect="yes", but it is not redirecting, just staying on the posting page. Here is the code i have in the posting page and the redirect page:
post.cfm
<cfhttp url="receive.cfm" method="post" redirect="yes">
<cfhttpparam name="SessionID" value="#SessionID#" type="FormField">
<cfhttpparam name="Amount" value="#Amount#" type="FormField">
</cfhttp>
receive.cfm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<cfoutput>
#Amount#
</cfoutput>
</body>
</html>
ive read somewhere that you need to return location in a header or something, but i cant find any examples or explanations. Does anyone know how this is done? Also once I am on the redirected page, how do i access variables sent from the post page?
Thanks
Rob