<html> <body> <h2>POST</h2> Uw schot was: <?php $canal = 5; $sub = rand(0, $canal - 1); $ammo = $canal / 5; $shot = $_POST['shot']; if ($shot == $sub) { echo 'Gewonnen'; } else { echo "Gemist"; } ?> </body> </html>