This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
nemubot-askweb/questions.php
Bertrand Cournaud 970b236363 String mail
2012-05-21 17:15:25 +02:00

24 lines
460 B
PHP
Executable File

<?php
define("FILENAME", "questions_file.nemubot");
if (isset ($_POST['send']))
{
if (empty($_POST['question']) || empty($_POST['answer']))
{
echo "Il manque la question ou la réponse !";
}
else
{
$question = $_POST['question'];
$answer = $_POST['answer'];
echo 'La question est : ' . $question . "<br/>";
echo 'La réponse est : ' . $answer;
mail('bertrand.cournaud@gmail.com', 'Nemubot', 'Ceci est un test');
}
}
?>