Капча по рандомным цифрам
<div class="field" style="text-align: center;margin-bottom: 30px;">
<?php
$i=1;
do{
$num[$i] = mt_rand(0,9);
echo "<img src='/wp-content/themes/blankslate/img/numbers/".$num[$i].".jpg' border='0' align='bottom' vspace='5px'>";
$i++;
}
while ($i<5);
$captcha = $num[1].$num[2].$num[3].$num[4];
?>
<input name="captcha" type="hidden" value="<?php echo $captcha ;?>">
<input required name="pr" style="width: 30%;height: 40px" type="text" size="6" maxlength="4" placeholder="Введіть числа з картинки">
</div>