Commit 4a5c24ed authored by willy's avatar willy

Fix name & email send msg

Fix #33
parent d108dd9b
......@@ -9,14 +9,15 @@ if(!isset($_POST['message']) || $_POST['message'] == '' || $_POST['firstname']
if(!isset($_POST['email']) || $_POST['email'] == '') {
$_POST['email']='Annonymus@knightsofnii.com';
}
if(isset($_POST['nom']) && $_POST['nom'] != '') {
if(!isset($_POST['nom']) || $_POST['nom'] == '') {
$_POST['nom']='Annonymus';
}
if(empty($_POST['firstname']) && empty($_POST['lastname'])) {
$to = 'admin@knightsofnii.com';
$subject = 'Real message from nii page !';
$message = $_POST['message']." ".$contact;
$message = $_POST['message']." \r\n from: ".$_POST['nom']." \r\n mail: ".$_POST['email'];
$send = mail($to, $subject, $message, " Message from main server page ! (or very smart bot)");
($send ? $send = 1 : $send = 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment