I have a ColdFusion page that appends the a URL with form variables. I'm trying replicate this code in php:
<cfhttp method="Post" url='http://api.test.com/import-lead-data.php'>
<cfoutput>
<cfhttpparam name="BAL_ONE" type="formField" value="#BAL_ONE#">
<!--- <cfhttpparam name="MTG_ONE_INT" type="formField" value="#MTG_ONE_INT#">
<cfhttpparam name="MTG_TWO" type="formField" value="#MTG_TWO#">
<cfhttpparam name="BAL_TWO" type="formField" value="#BAL_TWO#">
<cfhttpparam name="ADD_CASH" type="formField" value="#ADD_CASH#">--->
<cfhttpparam name="PRODUCT" type="formField" value="#PRODUCT#">
<cfhttpparam name="PROP_ST" type="formField" value="#PROP_ST#">
<cfhttpparam name="CRED_GRADE" type="formField" value="#CRED_GRADE#">
<cfhttpparam name="PROP_ZIP" type="formField" value="#PROP_ZIP#">
<cfhttpparam name="PROP_DESC" type="formField" value="#PROP_DESC#">
<cfhttpparam name="SPEC_HOME" type="formField" value="#SPEC_HOME#">
<cfhttpparam name="PURCHASE_CONTRACT" type="formField" value="#PURCHASE_CONTRACT#">
<cfhttpparam name="EST_VAL" type="formField" value="#EST_VAL#">
<cfhttpparam name="DOWN_PMT" type="formField" value="#DOWN_PMT#">
<cfhttpparam name="LOAN_TYPE" type="formField" value="#LOAN_TYPE#">
<cfhttpparam name="BUY_TIMEFRAME" type="formField" value="#BUY_TIMEFRAME#">
<cfhttpparam name="AGENT_FOUND" type="formField" value="#AGENT_FOUND#">
<cfhttpparam name="VA_STATUS" type="formField" value="#VA_STATUS#">
<cfhttpparam name="INCOME" type="formField" value="#INCOME#">
<cfhttpparam name="ANNUAL_VERIFIABLE_INCOME" type="formField" value="#ANNUAL_VERIFIABLE_INCOME#">
<cfhttpparam name="FHA_BANK_FORECLOSURE" type="formField" value="#FHA_BANK_FORECLOSURE#">
<cfhttpparam name="NUM_MORTGAGE_LATES" type="formField" value="#NUM_MORTGAGE_LATES#">
<cfhttpparam name="EMAIL" type="formField" value="#EMAIL#">
<cfhttpparam name="FNAME" type="formField" value="#FNAME#">
<cfhttpparam name="LNAME" type="formField" value="#LNAME#">
<cfhttpparam name="ADDRESS" type="formField" value="#ADDRESS#">
<cfhttpparam name="CITY" type="formField" value="#CITY#">
<cfhttpparam name="STATE" type="formField" value="#STATE#">
<cfhttpparam name="ZIP" type="formField" value="#ZIP#">
<cfhttpparam name="PRI_PHON" type="formField" value="#PRI_PHON#">
<cfhttpparam name="SEC_PHON" type="formField" value="#SEC_PHON#">
<cfhttpparam name="CAPTURE_METHOD" type="formField" value="#CAPTURE_METHOD#">
<cfhttpparam name="AID" type="formField" value="#AID#">
<cfhttpparam name="SRLP" type="formField" value="#SRLP#">
<cfhttpparam name="SCid" type="formField" value="#SCid#">
<cfhttpparam name="BUYER_ID" type="formField" value="#BUYER_ID#">
<cfhttpparam name="CID" type="formField" value="#CID#">
<cfhttpparam name="PPCID" type="formField" value="#session.PPCID#">
</cfoutput>
</cfhttp>
I assume I would use a httpRquest (meth: post)? But I'm not sure.