Captcha refreshing in PHP form
<p>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.</p>

<p>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)</p>

<pre><code>&lt;img id='captcha' src='/myproject/securimage/securimage_show.php' alt='CAPTCHA Image' /&gt;&lt;br&gt; &lt;a href='' onclick='document.getElementById('captcha').src =  '/securimage/securimage_show.php?' + Math.random(); return false'&gt; [Different Image ]&lt;/a&gt;
</code></pre>
