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元素