<label for="captcha">Please type the code you see (*):<br />
<img src="images/code_01.gif" />
<img src="images/code_07.gif" />
<img src="images/code_01.gif" />
<img src="images/code_08.gif" />
<img src="images/code_03.gif" />
<img src="images/code_07.gif" />
<input name="captcha" type="text" id="captcha" />
</label>
<span id="spryCaptcha">
<input type="text" name="captcha" id="captcha" tabindex="50" />
<span class="textfieldRequiredMsg">You have to submit this field.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span><br />
So to put some functionality in and show randomly 6 digit images i made this and work fine:
Code: Select all
<label for="captcha">Please type the code you see (*):<br />
<?php for($i=0; $i<=5; $i++){ ?>
<img src="_assets/captcha/code-0<?php echo rand(0,9); ?>.gif" width="18" height="30" />
<?php } ?>
</label>