Hello,
I’m trying to use the Securimage PHP script (cf google) for CAPTCHA’s but I have a problem: when I press the link “Different image” (to display another captcha), I lose all the text that was entered in the fields of my PHP form. So a user would have to re-enter everything again, which is problematic.
Here is the code.
Note: I took away the ‘#’ for the href because for some reason, it fails in changing the captcha image. Does anyone know why? (this happens in both Safari and Firefox)
[code=php]
<img id=’captcha’ src=’/myproject/securimage/securimage_show.php’ alt=’CAPTCHA Image’ /><br>
<a href=” onclick=’document.getElementById(‘captcha’).src =
‘/securimage/securimage_show.php?’ + Math.random(); return false’>[ Different Image ]</a>
If anyone could tell me what the problem is, I would really appreciate it.
Thank you very much