The one that doesn't work is 'src="/id/verifycode.php?0.3315922001265288"', not the onclick. The onclick works fine. Please look at http://code.google.com/p/cool-php-captcha/. There similiar code below works perfect: you see '<img src="captcha.php" id="captcha" />' in below code, it gets the picture for <img>. But how in my code, 'src="/id/verifycode.php?0.3315922001265288"' doesn't get the picture.
Thanks again, ReFreezed, for your help. When you click, the content of the src is changed accordingly, but, the picture is not shown. So the click works, but not the picture. The number at the end of url is a random number generated.
When "http://localhots/id/verifycode.php?0.3315922001265288" is typed in to the address of a browser, an image's name is shown.
Why the picture is not shown?
Can any one tell what the sever resopnses with 'captcha.php?'+Math.random(); in below code? A file name for a picture, or the picture is itself? If it's picture itself, how?