H
Harris Kosmidhs
Hello
I use captcha in an input form for registering. I have the following code:
<p><label><img id="captcha" src="reqcode.php"></label> <input
type="text" name="reqcode">
<br>Press here <a name="cap" href="#cap"
onclick="javascript:changecaptcha('captcha');">if you don't see the
pic.</a>.</p>
reqcode.php produces an image.(http://www.rados.gr/newtest/reqcode.php)
I include a js file in which I have:
function changecaptcha(elem) {
document.getElementById(elem).src =
'http://localhost:81/rados/reqcode.php';
}
If I press to change the image nothing happens. Why? Is it because it
has the same src so it doesn't reload?
thanks
I use captcha in an input form for registering. I have the following code:
<p><label><img id="captcha" src="reqcode.php"></label> <input
type="text" name="reqcode">
<br>Press here <a name="cap" href="#cap"
onclick="javascript:changecaptcha('captcha');">if you don't see the
pic.</a>.</p>
reqcode.php produces an image.(http://www.rados.gr/newtest/reqcode.php)
I include a js file in which I have:
function changecaptcha(elem) {
document.getElementById(elem).src =
'http://localhost:81/rados/reqcode.php';
}
If I press to change the image nothing happens. Why? Is it because it
has the same src so it doesn't reload?
thanks