画像認証(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

 

Leave a Reply

Your email address will not be published. Required fields are marked *