1)
{
if (isset($_POST['antiSpamAnswer']) && strcasecmp($_POST['antiSpamAnswer'],'18')==0)
{
$text = "";
foreach($_POST as $name => $value)
{
$text .= "$name : $value\n";
}
if ($text != "")
{
echo 'Thanks for contacting us';
echo '';
$headers = "Content-Type: text/plain; charset=UTF-8";
mail("", "Contact form request", $text, $headers);
}
}
else
{
echo "
Sorry, you need to answer the anti-Spam message correctly.
";
foreach($_POST as $name => $value)
{
echo ''; }
}
}
?>