__(Added `[code]…[/code]
Hello,
I have contact form on my website. It used to work well until now but my hosting server proceeded with a migration and now it does not work anymore. You will find here below the code. Is there a place/file where we need to specify the migration for this to work?
[code]
<?php
//variable formulaire envoi
$name=htmlspecialchars($_POST[‘name’]);
$company=htmlspecialchars($_POST[‘company’]);
$email=htmlspecialchars($_POST[’email’]);
$telephone=htmlspecialchars($_POST[‘telephone’]);
$type=htmlspecialchars($_POST[‘type’]);
$question=htmlspecialchars($_POST[‘message’]);
//variables mail
$headers =’From: “A&T website”<[email protected]>’.”n”;
$headers .=’Content-Type: text/html; charset=”utf-8″‘.”n”;
$headers .=’Content-Transfer-Encoding: 8bit’;
//corps message
$message=”
<!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01 Transitional//EN’ ‘http://www.w3.org/TR/html4/loose.dtd’>
<html>
<head>
<meta http-equiv=’Content-Type’ content=’text/html; charset=utf-8′>
<title>Website Contact</title>
<style type=’text/css’>
<!–
body {
background-color: #EEE;
font-family: Tahoma, Geneva, sans-serif;
font-size: 13px;
}
hr {
height:1px;
}
–>
</style>
</head>
<body>
<table width=’650′ border=’0′ align=’center’ cellpadding=’0′ cellspacing=’0′ bgcolor=’#FFFFFF’>
<tr>
<td width=’25’ height=’60’> </td>
<td width=’600′ valign=’top’><p><img src=’http://www.abcd/abcd_logo.png’ align=’left’><br><br></p></td>
<td width=’25’> </td>
</tr>
<tr>
<td height=’292′> </td>
<td valign=’top’><strong><u>Website Contact</u></strong><br><br>
<table width=’602′ border=’0′ align=’center’>
<tr align=’left’>
<td width=’81’><strong>Name :</strong></td>
<td>”. $name .”</td>
<td width=’100′><strong>Email :</strong></td>
<td width=’182′>”. $email .”</td>
</tr>
<tr align=’left’>
<td><strong>Company</strong></td>
<td width=’249′>”. $company .”</td>
<td><strong>Phone</strong></td>
<td>”. $phone .”</td>
</tr>
</table>
<hr noshade color=’#683d14′ size=’1px’ width=’90%’>
<strong>Type : </strong> “. $type .” <br />
<strong>Message :</strong><br />
“. $question .”
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align=’center’><span style=’color:#999′>abcd – 2015</span></td>
<td> </td>
</tr>
</table>
</body>
</html>
“;
if ( ereg(‘[email protected]|[email protected]|[email protected]|[email protected]’,$emmeteur) )
{
header(‘Location: message-send.php?send=no’);
}
elseif ( ereg(‘<|<|url|link|http|wwww’,$question) )
{
header(‘Location: message-send.php?send=no’);
}
elseif (($name==””) || ($company==””) || ($email==””) || ($phone==””) || ($type==””) || ($question==””) )
{
header(‘Location: message-send.php?send=fieds’);
}
else mail(‘[email protected]’,’website contact’,$message,$headers);
header(‘Location: message-send.php?send=ok’);
?>