[CODE lang=php] <?php
$secode = substr(rand(10000, 999999), 0, 5);
if (isset($_POST['security'])) {
$securityCode=$_POST['securityCode'];
$securityCodeHide=$_POST['securityCodeHide'];
if ($securityCode == $securityCodeHide) {
echo 'dogru';
} else {
echo 'yanlis';
}
}
?>
<form action="testx.php" method="POST">
<span>Güvenlik Kodu <b><?php echo $secode; ?></b></span>
<input type="hidden" name="securityCodeHide" value="<?php echo $secode; ?>">
<input type="number" name="securityCode">
<button type="submit" name="security">Gönder</button>
</form>
[/CODE]
Bunu denersen çalıştığını göreceksin.İyi çalışmalar.