check($_POST['security']); if(!$valid){ $errstr[] = "The security code you entered was incorrect"; } } if ( count( $errstr ) ){ echo "

"; foreach( $errstr as $err ){ echo $err; } echo "

"; //showForm(); }else{ include_once('class.phpmailer.php'); $mail= new PHPMailer(); $mail->From = $_POST['contactemail']; $mail->FromName = $_POST['contactname']; $mail->AddAddress("sales@dgi-media.co.uk", "DGI media"); //$mail->AddAddress("may@silvermover.com", "Silvermover Test"); $mail->Subject = "DGI media: Customer Completed Contact Form"; $body="DGI media,

A customer has completed the Contact form on the website.
Details as follows

--------------------------------------

Contact Name: {$_POST['contactname']}
Company: {$_POST['contactcompany']}
Telephone: {$_POST['contacttelephone']}
Website: {$_POST['contactwebsite']}
Email: {$_POST['contactemail']}
Message:
{$_POST['contactmessage']}

"; $mail->MsgHTML($body); if($mail->Send()) { // send the mail echo ""; //window.location='"._URL_."thank'; }else{ echo ""; } } } ?>

Get in touch

Feel free to contact us or please fill in the following details below and we will be in touch shortly.

1 Pine Cresent - Walton on the Hill - Stafford - ST17 0ND

01782 479873

 

 

sales@dgi-media.co.uk

Contact DGI Media







captcha

md5( uniqid( time() ) ), //'{email}' => htmlspecialchars( $_POST['email'] ), //'{question}' => htmlspecialchars( $_POST['question'] ), ) ); ?>