Form Test

[av_one_full first min_height=” vertical_alignment=” space=” custom_margin=” margin=’0px’ link=” linktarget=” link_hover=” padding=’0px’ border=” border_color=” radius=’0px’ background=’bg_color’ background_color=” background_gradient_color1=” background_gradient_color2=” background_gradient_direction=’vertical’ src=” background_position=’top left’ background_repeat=’no-repeat’ animation=” mobile_breaking=” mobile_display=” av_uid=’av-blgqr’] [av_codeblock wrapper_element=” wrapper_element_attributes=” codeblock_type=” av_uid=’av-jjefzycm’] if($key != “where”){
$par .= (($par==””)?””:”&”).”$key=$value”;
}
}
$par .= ‘&MM=’.date(‘F’, strtotime($fqd_moving_date)).’&YY=’.$yy.’&DD=’.ltrim($dd, “0”);

$add=”http://ant.hellomoving.com/wc.dll?mpdir~moduleret~1776MOVE~N”; //J

$debug = false;
if(isset($_REQUEST[‘debug’]) && $_REQUEST[‘debug’]==’true’):
$debug = true;
endif;

$url = $add;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $par);
if(!$debug)
$result = curl_exec($ch);
curl_close($ch);
$result = strtolower($result);

if(strstr($result,””) || $debug){

$mail = new PHPMailer;
$mail->isSendmail();
$mail->setFrom(“noReply@niceguymoversorlando.com”,”Nice Guy Movers Orlando”);
$mail->addReplyTo(“noReply@niceguymoversorlando.com”,”Nice Guy Movers Orlando”);

$we = “”;
switch($_POST[‘ROOMS’]){
case ‘STU’: $we = “Studio”;
break;
case ‘ONE’: $we = “One Bedroom”;
break;
case ‘TWO’: $we = “Two Bedrooms”;
break;
case ‘THR’: $we = “Three Bedrooms”;
break;
case ‘FOU’: $we = “Four Bedrooms”;
break;
case ‘FIV’: $we = “Five Bedrooms”;
break;
case ‘SIX’: $we = “Six Bedrooms”;
break;

}

$body = “Moving Estimate Request:
Full Name : “.$_POST[‘SNAME’].

Email : “.$_POST[‘EMAIL’].

Phone Day Time : “.$_POST[‘STELH’].

Moving From “.

Zip : “.$_POST[‘SZIP’].

Moving To “.

Zip : “.$_POST[‘RZIP’].

Number of Rooms : $we”.

Moving Date : “.$mm.”-“.$dd.”-“.$yy;
$body.=”
Alarm : “;
$body.=$_POST[‘alarm’] == 1 ? ‘Yes’ : ‘No’;
$mail->msgHTML($body);
$mail->Subject = “Nice Guy Movers Orlando (Moving Estimate)”;

$mail->addAddress(“leads@niceguymovers.com”, “leads@niceguymovers.com”);

$mail->isHTML(true);
$enviado =”ok”;
if(!$debug):
if(!$mail->send()){
echo “DEBUG: “.$mail->ErrorInfo;
$enviado=$mail->ErrorInfo;
}
endif;

$fromEngine=isset($_POST[‘engine’]) ? $_POST[‘engine’] : ”;

$mail2 = new PHPMailer;
$mail2->isSendmail();
$mail2->setFrom(“noReply@niceguymoversorlando.com”,”Nice Guy Movers Orlando”);
$mail2->addReplyTo(“noReply@niceguymoversorlando.com”,”Nice Guy Movers Orlando”);

$mail2->addEmbeddedImage(“mails/images/email-july_01.jpg”,1001,”email-july_01.jpg”);
//$mail2->addEmbeddedImage(“mails/images/email-july_02.jpg”,1002,”email-july_02.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_03.jpg”,1003,”email-july_03.jpg”);
//$mail2->addEmbeddedImage(“mails/images/email-july_04.jpg”,1004,”email-july_04.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_05.jpg”,1005,”email-july_05.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_06.jpg”,1006,”email-july_06.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_07.jpg”,1007,”email-july_07.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_08.jpg”,1008,”email-july_08.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_09.jpg”,1009,”email-july_09.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_10.jpg”,1010,”email-july_10.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_11.jpg”,1011,”email-july_11.jpg”);
$mail2->addEmbeddedImage(“mails/images/email-july_12.jpg”,1012,”email-july_12.jpg”);

//$body2 = ‘imagenPrueba2‘;
$body2 = ‘

 

 

Dear ‘.$name.’,

 

We are processing your moving quote in our system. A personal moving consultant will be contacting you soon to review the details of your quote and provide you with additional information.

You can also speak to a consultant at this very moment if you wish, don’.”‘”.’t hesitate to contact us at 1(888) 282-2520; we are available M-F 8am’.”-“.’8pm, Sat. 9am-7pm & Sun. 10am-4pm Eastern Time. Just give us your name or reference number so that we can access you quote immediately.

Thank you for considering Nice Guy Movers as your moving option, we’.”‘”.’re not only pleasant to work with, but experienced, trained, and knowledgeable about all aspects of our industry, we will do our best to meet your service expectations!

Looking forward to speaking with you soon!

Sincerely,
Nice Guy Movers

info@niceguymovers.comwww.niceguymovers.com

‘;
$mail2->msgHTML($body2);
$mail2->Subject = “Nice Guy Movers Orlando (Moving Estimate)”;
$mail2->addAddress($email,$name);
if(!$debug):
if(!$mail2->Send()){
echo “DEBUG: “.$mail2->ErrorInfo;
$enviado.=’

‘.$mail2->ErrorInfo;
}else{$enviado.=’

ok’;}
endif;

$adParams = ”;
$tp_from = ”;
$tp_to = isset($_POST[‘STATE_LT’])?trim(strtolower($_POST[‘STATE_LT’])):”;
if($$tp_from!=” && $tp_to!=” && $tp_from!=’na’ && $tp_to!=’na’ && strcmp($tp_from,$tp_to)!=0){
$adParams = ‘&t=2’;
}

echo ‘‘;

}else{
if(strstr($result,”please use the zip finder”)){
$inicio = strpos($result,””);
$mensaje = substr($result,($inicio+7),$fin-($inicio+7));
?>





}
}
}

[/av_codeblock] [/av_one_full][av_two_fifth first min_height=” vertical_alignment=” space=” custom_margin=” margin=’0px’ link=” linktarget=” link_hover=” padding=’0px’ border=” border_color=” radius=’0px’ background=’bg_color’ background_color=” background_gradient_color1=” background_gradient_color2=” background_gradient_direction=’vertical’ src=” background_position=’top left’ background_repeat=’no-repeat’ animation=” mobile_breaking=” mobile_display=” av_uid=’av-heiz7′] [av_textblock size=” font_color=” color=” av-desktop-hide=” av-medium-hide=” av-small-hide=” av-mini-hide=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” av_uid=’av-86itf’] Please select a valid form [/av_textblock] [/av_two_fifth] [av_two_fifth min_height=” vertical_alignment=” space=” custom_margin=” margin=’0px’ link=” linktarget=” link_hover=” padding=’0px’ border=” border_color=” radius=’0px’ background=’bg_color’ background_color=” background_gradient_color1=” background_gradient_color2=” background_gradient_direction=’vertical’ src=” background_position=’top left’ background_repeat=’no-repeat’ animation=” mobile_breaking=” mobile_display=” av_uid=’av-heiz7′] [av_textblock size=” font_color=” color=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” av_uid=’av-86itf’ admin_preview_bg=”] if($key != “where”){
$par .= (($par==””)?””:”&”).”$key=$value”;
}
}
$par .= ‘&MM=’.date(‘F’, strtotime($fqd_moving_date)).’&YY=’.$yy.’&DD=’.ltrim($dd, “0”);
$par .= “&MODULE=EST”;

$url = “http://ant.hellomoving.com/wc.dll?mpdir~moduleret~1776MOVE~N”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $par);
$result = curl_exec($ch);

curl_close($ch);

if(strstr(strtolower($result), “”)) {
$mail = new PHPMailer;
$mail->isSendmail();
$mail->setFrom(“noReply@niceguymovers.com”, “Nice Guy Movers”);
$mail->addReplyTo(“noReply@niceguymovers.com”, “Nice Guy Movers”);

$we = “”;
$rooms = filter_var($_POST[‘ROOMS’],FILTER_SANITIZE_STRING);
switch ($rooms) {
case ‘STU’:
$we = “Studio”;
break;
case ‘ONE’:
$we = “One Bedroom”;
break;
case ‘TWO’:
$we = “Two Bedrooms”;
break;
case ‘THR’:
$we = “Three Bedrooms”;
break;
case ‘FOU’:
$we = “Four Bedrooms”;
break;
case ‘FIV’:
$we = “Five Bedrooms”;
break;
case ‘SIX’:
$we = “Six Bedrooms”;
break;
}

$body = “Moving Estimate Request:
Full Name : “.$name.

Email : “.$email.

Phone Day Time : “.$phone.

Moving From “.

Zip : “.$fromZip.

Moving To “.

Zip : “.$toZip.

Number of Rooms : “.$we.

Moving Date : “.$usa_date;
$mail->Body = $body;
$mail->isHTML(true);
$mail->AltBody = ‘Please change view to HTML’;
$mail->Subject = “Moving Estimate – niceguymovers.com”;
$mail->addAddress(“info@1776moving.com”, “Nice Guy Movers”);

$enviado = “ok”;
if(!$mail->Send()){
$enviado=$mail->ErrorInfo;
}

/*mailing*/
$mail2 = new PHPMailer;
$mail2->isSendmail();
$mail2->setFrom(“noReply@niceguymovers.com”, “Nice Guy Movers”);
$mail2->addReplyTo(“noReply@niceguymovers.com”, “Nice Guy Movers”);
$mail2->AddEmbeddedImage(“mails/images/email-july_01.jpg”, 1001, “email-july_01.jpg”);
//$mail2->AddEmbeddedImage(“mails/images/email-july_02.jpg”,1002,”email-july_02.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_03.jpg”, 1003, “email-july_03.jpg”);
//$mail2->AddEmbeddedImage(“mails/images/email-july_04.jpg”,1004,”email-july_04.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_05.jpg”, 1005, “email-july_05.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_06.jpg”, 1006, “email-july_06.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_07.jpg”, 1007, “email-july_07.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_08.jpg”, 1008, “email-july_08.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_09.jpg”, 1009, “email-july_09.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_10.jpg”, 1010, “email-july_10.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_11.jpg”, 1011, “email-july_11.jpg”);
$mail2->AddEmbeddedImage(“mails/images/email-july_12.jpg”, 1012, “email-july_12.jpg”);

$body2 = ‘

 

 

Dear ‘ . $name . ‘,

We are processing your moving quote in our system. A personal moving consultant will be contacting you soon to review the details of your quote and provide you with additional information.

You can also speak to a consultant at this very moment if you wish, don’ . “‘” . ‘t hesitate to contact us at 1(888) 282-2520; we are available M-F 8am’ . “-” . ‘8pm, Sat. 9am-7pm & Sun. 10am-4pm Eastern Time. Just give us your name or reference number so that we can access you quote immediately.

Thank you for considering Nice Guy Movers as your moving option, we’ . “‘” . ‘re not only pleasant to work with, but experienced, trained, and knowledgeable about all aspects of our industry, we will do our best to meet your service expectations!

Looking forward to speaking with you soon!

Sincerely,
Nice Guy Movers

info@niceguymovers.comwww.niceguymovers.com

‘;
$mail2->msgHTML($body2);
$mail2->AltBody = ‘Please change view to HTML’;
$mail2->Subject = “Moving Estimate – Nice Guy Movers”;
$mail2->addAddress($email, “Customer”);
if(!$mail2->Send()){
//$enviado.=’

‘.$mail2->ErrorInfo;
}

$adParams = ‘thanks.html’;

/*$tp_from = isset($SFCity[1]) ? trim(strtolower($SFCity[1])) : ”;
$tp_to = isset($STCity[1]) ? trim(strtolower($STCity[1])) : ”;
if ($tp_from != ” && $tp_to != ” && $tp_from != ‘na’ && $tp_to != ‘na’ && strcmp($tp_from, $tp_to) != 0) {
$adParams = ‘contact-thanks.html’;
}*/

header(“Location: http://www.niceguymovers.com/”.$adParams);
exit();
} else {
$adParams = ”;
if (strstr($result, “please use the zip finder”)) {
$inicio = strpos($result, “”);
$mensaje = substr($result, ($inicio + 7), $fin – ($inicio + 7));
$adParams = ‘thanks.html’;
} else {
if (strstr($result, “system”)) {
$mensaje = ‘Your email has an estimate in our system.\nPlease contact our customer service!’;
$adParams = ‘thanks.html’;
} else {
$mensaje = ‘An error has ocurred, please try again’;
}
}
header(“Location: http://www.niceguymovers.com/”.$adParams.”?msg=”.urlencode($mensaje));
exit();
}
[/av_textblock] [/av_two_fifth] [av_hr class=’default’ height=’50’ shadow=’no-shadow’ position=’center’ custom_border=’av-border-thin’ custom_width=’50px’ custom_border_color=” custom_margin_top=’30px’ custom_margin_bottom=’30px’ icon_select=’yes’ custom_icon_color=” icon=’ue808′ av-desktop-hide=” av-medium-hide=” av-small-hide=” av-mini-hide=” av_uid=’av-eepsz’] [av_two_fifth first min_height=” vertical_alignment=” space=” custom_margin=” margin=’0px’ link=” linktarget=” link_hover=” padding=’0px’ border=” border_color=” radius=’0px’ background=’bg_color’ background_color=” background_gradient_color1=” background_gradient_color2=” background_gradient_direction=’vertical’ src=” background_position=’top left’ background_repeat=’no-repeat’ animation=” mobile_breaking=” mobile_display=” av_uid=’av-7nbgj’] [av_textblock size=” font_color=” color=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” av_uid=’av-jivv6ay2′ admin_preview_bg=”]


To Zip Code:

From Zip Code:
Moving Date:
Move Size:
Full Name:
Your Email:
Phone:

 

[/av_textblock] [/av_two_fifth]