‘163’,’Denver, CO’=>’164′,’Boston, MA’=>’165′);

// Post url
$post_url = ‘https://api.resolution.tech/corp/’;

// Build xml to post
// Affiliate form
if ($form->getValueHtml(‘quform_8_136’) && $form->getValueHtml(‘quform_8_166’) && $form->getValueHtml(‘quform_8_197’) && $form->getValueHtml(‘quform_8_202’)) {
$post_xml = “n”.
n”.
“.$affiliateID.”n”.
“.$affiliateKey.”n”.
“.$form->getValueHtml(‘quform_8_136’).”n”.
“.$form->getValueHtml(‘quform_8_210’).”n”.
“.$form->getValueHtml(‘quform_8_166’).”n”.
“.$form->getValueHtml(‘quform_8_197’).”n”.
n”.
n”.
n”.
n”.
n”.
n”.
“.$form->getValueHtml(‘quform_8_204’).”n”.
“.strip_tags($form->getValueHtml(‘quform_8_202’)).”n”.
“;
}
// Agent form
if ($form->getValueHtml(‘quform_2_34’) && $form->getValueHtml(‘quform_2_33’) && $form->getValueHtml(‘quform_2_124’) && $form->getValueHtml(‘quform_2_5’)) {
// Define Affiliate ID
$agentAffiliateID =
$post_xml = “n”.
n”.
“.$affiliateID.”n”.
“.$affiliateKey.”n”.
“.$arrAffiliateID[$form->getValueHtml(‘quform_2_34’)].”n”.
“.$form->getValueHtml(‘quform_2_33’).”n”.
“.$form->getValueHtml(‘quform_2_124’).”n”.
n”.
n”.
n”.
n”.
n”.
n”.
“.$form->getValueHtml(‘quform_2_7’).”n”.
“.strip_tags($form->getValueHtml(‘quform_2_5’)).”n”.
“;
}
// Pricing Page Lead Gen
if ($form->getValueHtml(‘quform_55_227’) && $form->getValueHtml(‘quform_55_233’) && $form->getValueHtml(‘quform_55_202’) && $form->getValueHtml(‘quform_55_204’)) {
$post_xml = “n”.
n”.
“.$affiliateID.”n”.
“.$affiliateKey.”n”.
“.$form->getValueHtml(‘quform_55_204’).”n”.
“.$form->getValueHtml(‘quform_55_234’).”n”.
n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_55_233’))[0].”n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_55_233’))[1].”n”.
n”.
n”.
n”.
n”.
n”.
n”.
“.$form->getValueHtml(‘quform_55_227’).”n”.
“.strip_tags($form->getValueHtml(‘quform_55_202’)).”n”.
“;
}
// General Lead Gen
if ($form->getValueHtml(‘quform_3_233’) && $form->getValueHtml(‘quform_3_204’) && $form->getValueHtml(‘quform_3_202’) && $form->getValueHtml(‘quform_3_227’)) {
$post_xml = “n”.
n”.
“.$affiliateID.”n”.
“.$affiliateKey.”n”.
“.$form->getValueHtml(‘quform_3_204’).”n”.
“.$form->getValueHtml(‘quform_3_234’).”n”.
n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_3_233’))[0].”n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_3_233’))[1].”n”.
n”.
n”.
n”.
n”.
n”.
n”.
“.$form->getValueHtml(‘quform_3_227’).”n”.
“.strip_tags($form->getValueHtml(‘quform_3_202’)).”n”.
“;
}
// Response CRM Lead Gen
if ($form->getValueHtml(‘quform_60_233’) && $form->getValueHtml(‘quform_60_204’) && $form->getValueHtml(‘quform_60_202’) && $form->getValueHtml(‘quform_60_227’)) {
$post_xml = “n”.
n”.
“.$affiliateID.”n”.
“.$affiliateKey.”n”.
“.$form->getValueHtml(‘quform_60_204’).”n”.
“.$form->getValueHtml(‘quform_60_234’).”n”.
n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_60_233’))[0].”n”.
“.explode(‘ ‘,$form->getValueHtml(‘quform_60_233’))[1].”n”.
n”.
n”.
n”.
n”.
n”.
n”.
“.$form->getValueHtml(‘quform_60_227’).”n”.
“.strip_tags($form->getValueHtml(‘quform_60_202’)).”n”.
“;
}
// Initialize curl and send
$request = curl_init();
curl_setopt($request, CURLOPT_URL, $post_url);
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($request, CURLOPT_HEADER, 1);
curl_setopt($request, CURLOPT_POSTFIELDS, $post_xml);
curl_setopt($request, CURLOPT_POST, 1);
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, 0);
$post_response = curl_exec($request);
curl_close ($request);

// Display results
// Affiliate form
if ($form->getValueHtml(‘quform_8_136’) && $form->getValueHtml(‘quform_8_166’) && $form->getValueHtml(‘quform_8_197’) && $form->getValueHtml(‘quform_8_202’)) {
?>

Name:

Email:

Phone:

Company:

Website:

getValueHtml(‘quform_2_34’) && $form->getValueHtml(‘quform_2_33’) && $form->getValueHtml(‘quform_2_124’) && $form->getValueHtml(‘quform_2_5’)) {
?>

Name:

Email:

Phone:

Company:

Affiliate:

getValueHtml(‘quform_55_233’) && $form->getValueHtml(‘quform_55_202’) && $form->getValueHtml(‘quform_55_227’) && $form->getValueHtml(‘quform_55_204’)) {
?>

Name:

Email:

Phone:

Company:

Website:

getValueHtml(‘quform_3_233’) && $form->getValueHtml(‘quform_3_204’) && $form->getValueHtml(‘quform_3_202’) && $form->getValueHtml(‘quform_3_227’)) {
?>

Name: Texco

Email: Texco

Phone: Texco@gmail.com

Company: 7163526253

Website: Texco.com

getValueHtml(‘quform_60_233’) && $form->getValueHtml(‘quform_60_204’) && $form->getValueHtml(‘quform_60_202’) && $form->getValueHtml(‘quform_60_227’)) {
?>

Name:

Email:

Phone:

Company:

Website: