Hello
I've recently upgraded my webside php from php4 to php 5.4.
SInce that, my contact page doesn't work anymore
Can someone help me please ?
Here is the code :
<?php
$name=$HTTP_POST_VARS['name'];
$surname=$HTTP_POST_VARS['surname'];
$mail=$HTTP_POST_VARS['mail'];
$object=$HTTP_POST_VARS['object'];
$type=$HTTP_POST_VARS['type'];
$message= Stripslashes($HTTP_POST_VARS['message']);
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/HTML; charset=iso-8859-1\r\n";
$headers .= "From: $name $surname<$mail>\r\nReply-to : $nom <$mail>\nX-MailerHP";
$subject="$object";
$destinataire="efranckson@gmail.com";
$body="<p>Sender : ".$name." ".$surname."</p><p>E-mail : ".$mail."</p><p>subject : ".$object." - ".$type."</p><p>Message : <br>".$message;
Message send !
?></p>