I have been trying to resolve this problem for weeks now (i am an novice), i have tried everything. Nothing i do seems to fix the problem.
My host is site5
The code im using on my contact.php page is :
please any help would be appreciated!
My host is site5
The code im using on my contact.php page is :
Code:
<?php
if(isset($_POST['SUBMIT'])){
$naslov = htmlspecialchars($_POST['subject'], ENT_QUOTES);
$lastname = htmlspecialchars($_POST['name'], ENT_QUOTES);
$mail = htmlspecialchars($_POST['email'], ENT_QUOTES);
$message = htmlspecialchars($_POST['text'], ENT_QUOTES);
$emaile = explode('@', $mail);
if($emaile[0] != '' && $emaile[1] != ''){
$to = 'info@precision-clean.co.uk';
$subj = 'enquiry';
$headers = 'From: '.$to.'' . "\r\n";
$headers .= 'Reply-To: '.$to.'' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$mess = '<html><head><title>CONTACT</title></head><body><p>';
$mess .= '<p><b>CONTACT</b></p><br />';
$mess .= '<b>Title: </b>'.$subject.'<br />';
$mess .= '<b>Name: </b>'.$lastname.'<br />';
$mess .= '<b>E-mail: </b>'.$mail.'<br />';
$mess .= '<b>Message: </b>'.$message.'<br />';
$mess .= '</p></body></html>';
$mailsend = mail($to,$subj,$mess, $headers);
unset($_POST['name'],$_POST['subject'],$_POST['name'],$_POST['email'],$_POST['text']);
}else{
$error = 'Ivalid e-mail. Please try again. Thank you';
}
}
if (isset($error)) {
print '<div>'.$error.'</div>';
}
?>
Comment