画像認証(CAPTCHA) in php form

Captcha adding in form

=======================

index.php

——————————————

//ランダムコード取得
$rand_code = rand();
$smarty->assign(“rand_code”,$rand_code);

index.tmpl (smarty)

——————————————

<tr>
<th>画像認証<span class=”red”>※</span></th>
<td>
<img src=”../captcha/captcha_code_file.php?rand={$rand_code}” id=”captchaimg” ><br /><br />
<label for=”message”>上記の文字列を入力してください。</label><br/>
<input style=”height:20px; font-size:18px;” id=”6_letters_code” name=”6_letters_code” type=”text”>
</td>
</tr>

————————————–

check.php

——————————————–

check the match and validation of entered captcha code.

details zip file Download

 


Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/r8424051/public_html/nibatech.com/wiki/wp-includes/wp-db.php on line 1889