2
我正在从一个窗体获取信息并回发到同一页面的Coldfusion页面。然而,我有一个CFHTTP URL字符串,我想要POST到一个PHP页面,并且我想在一个单独的页面中打开(仍然保留原来的POST页面打开,我认为CFHTTP会接受一个“目标空白”值,但。它不会在这里是我的代码:?CFHTTP可以接受TARGET值吗?
<cfhttp method="Post" url="https://www.foo.com/foocorp/restrict/fpdf/letter.php" result="adverseResponse">
<cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
<cfhttpparam type="Header" name="TE" value="deflate;q=0">
<cfoutput>
<cfif isdefined("b_firstname")><cfhttpparam name="B_FIRSTNAME" type="formField" value="#B_FIRSTNAME#"></cfif>
<cfif isdefined("b_lastname")><cfhttpparam name="B_LASTNAME" type="formField" value="#B_LASTNAME#"></cfif>
<cfif isdefined("prop_address")><cfhttpparam name="PROP_ADDRESS" type="formField" value="#PROP_ADDRESS#"></cfif>
<cfif isdefined("prop_city")><cfhttpparam name="PROP_CITY" type="formField" value="#PROP_CITY#"></cfif>
<cfif isdefined("prop_state")><cfhttpparam name="PROP_STATE" type="formField" value="#PROP_STATE#"></cfif>
<cfif isdefined("prop_zip")><cfhttpparam name="PROP_ZIP" type="formField" value="#PROP_ZIP#"></cfif>
</cfoutput>
</cfhttp>
有,我应该使用,而不是CFHTTP另一CF元素