if($_POST['callbackformSubmitted']){
if (empty($_POST['callsecurity'])){
$errstr[] = "Please validate the image code";
}else{
include("secureimage/securimage.php");
$img = new Securimage();
$valid = $img->check($_POST['callsecurity']);
if(!$valid){ $errstr[] = "The security code you entered was incorrect"; }
}
if ( count( $errstr ) ){
echo "
A customer has completed the Contact form on the website.
Details as follows
--------------------------------------
Contact Name: {$_POST['callname']}
Telephone: {$_POST['calltelephone']}
Email: {$_POST['callemail']}
Message:
{$_POST['callmsg']}
"; $mail3->MsgHTML($body); if($mail3->Send()) { // send the mail echo ""; //window.location='"._URL_."thank'; }else{ echo ""; //window.location='"._URL_."contactus'; } } } ?>
"; foreach( $errstr as $err ){ echo $err; } echo "
"; //showForm(); }else{ include_once('class.phpmailer.php'); $mail3= new PHPMailer(); $mail3->From = $_POST['callemail']; $mail3->FromName = $_POST['callname']; $mail3->AddAddress("callback@dgi-media.co.uk", "DGI media"); //$mail3->AddAddress("may@silvermover.com", "Silvermover Test"); $mail3->Subject = "DGI media: Call me back please"; $body="DGI media,A customer has completed the Contact form on the website.
Details as follows
--------------------------------------
Contact Name: {$_POST['callname']}
Telephone: {$_POST['calltelephone']}
Email: {$_POST['callemail']}
Message:
{$_POST['callmsg']}
"; $mail3->MsgHTML($body); if($mail3->Send()) { // send the mail echo ""; //window.location='"._URL_."thank'; }else{ echo ""; //window.location='"._URL_."contactus'; } } } ?>
if($_POST['orderformSubmitted']){
if (empty($_POST['ordersecurity'])){
$errstr[] = "Please validate the image code";
}else{
include("secureimage/securimage.php");
$img = new Securimage();
$valid = $img->check($_POST['ordersecurity']);
if(!$valid){ $errstr[] = "The security code you entered was incorrect"; }
}
if ( count( $errstr ) ){
echo "
Project: {$_POST['orderproduct']} $body="DGI media,
A customer has completed the Sighup form on the website.
Details as follows
--------------------------------------
Contact Name: {$_POST['ordername']}
Company: {$_POST['ordercompany']}
Telephone: {$_POST['ordertelephone']}
Email: {$_POST['orderemail']}
Message:
{$_POST['ordermsg']}
"; $mail2->MsgHTML($body); if($mail2->Send()) { // send the mail echo ""; //window.location='"._URL_."thank'; }else{ echo ""; //window.location='"._URL_."contactus'; } } } ?>
"; foreach( $errstr as $err ){ echo $err; } echo "
"; //showForm(); }else{ include_once('class.phpmailer.php'); $mail2= new PHPMailer(); $mail2->From = $_POST['orderemail']; $mail2->FromName = $_POST['ordername']; $mail2->AddAddress($smMainEmail, "DGI mailer"); //$mail2->AddCC("paul@dgi-media.co.uk", "DGI mailer"); $mail2->AddCC("may@silvermover.com", "Silvermover Test"); $mail2->Subject = "DGI mailer: Customer Completed Signup Form"; //Project: {$_POST['orderproduct']} $body="DGI media,
A customer has completed the Sighup form on the website.
Details as follows
--------------------------------------
Contact Name: {$_POST['ordername']}
Company: {$_POST['ordercompany']}
Telephone: {$_POST['ordertelephone']}
Email: {$_POST['orderemail']}
Message:
{$_POST['ordermsg']}
"; $mail2->MsgHTML($body); if($mail2->Send()) { // send the mail echo ""; //window.location='"._URL_."thank'; }else{ echo ""; //window.location='"._URL_."contactus'; } } } ?>