<?php
include("head.php");
// Anti-spam :
$nr1 = rand(0,5);
$nr2 = rand(0,5);
switch(rand(1,3)){
case 1 :
$op = "+";
$_SESSION["total"] = $nr1+$nr2;
break;
case 2 :
$op = "*";
$_SESSION["total"] = $nr1*$nr2;
break;
default :
$nr3 = $nr2 = rand(0,3);
$op = "+";
$_SESSION["total"] = $nr1+$nr2+$nr3;
}
?>
Abuse report - contact :
<form action="contactsend.php" method="post">
<label><span>Id of the yell</span><input type="text" name="yell" value="<?php
if(is_numeric($_GET['id'])){
echo($_GET['id']);
}
?>"></label>
<label><span>What is the problem?</span><textarea name="body"></textarea></label>
<label><span>Who are you?</span><textarea name="who"></textarea></label>
<label><span>What is your e-mail?</span><input type="text" name="from"></label>
<label><span>Prove us you're not a robot:<br><?php
echo($nr1 . " " . $op ." " . $nr2);
if(isset($nr3)){
echo(" " .$op ." " . $nr3);
}
?> = </span><input type="text" name="calc" ></label>
<input type="submit" value="send">
</form>
<?php
include("foot.php");
?>