|
Hello . fisrt at all i need to say that this is my first time with php . I got a hosting linux plan and and i got this simple php code that should work, but it doesnt. Im really sad because i feel really silly ...im not a pro with this..
The body of the message doesnt get my mail, i just the subtject, the mail from the person.... and and empty email!!
this is the code im working with
<?php
$name = $_POST["id"];
$from = $_POST["from"];
$message = $_POST["msg"];
$subject = "wh0w | Contact | " . $_POST["objet"];
$msg = utf8_decode($msg);
$msg = str_replace("\\", "", $msg);
$msg = stripslashes($msg);
$msg .= "\n";
$body = "Message de : " . $name . ", " . $from . "\n\n";
$body .= $msg;
mail("ezequielavaro@yahoo.com.ar",$subject,$body);
echo "statut=ok";
?>
and this is the file that godady gives you. it is on my hosting but i dont know what to do with it.i Also put my email already at godaddy configuration control panel
Does anybody know why i only get empty emails ? how shuold i modify this gdform...should i link with the other php code ? how ?
Thanks
|