PHP 点击局部刷新
6.2.1在显示的验证码中img中添加一个id=“code”
var code=document.getElementById(‘code’);
code.onclick=function(){
this.src=’code.php?tm=math.random()’;
}
6.3点击注册刷新
<form method="post" name='register' action='register.php?action=submit_register'>
6.2.1在显示的验证码中img中添加一个id=“code”
var code=document.getElementById(‘code’);
code.onclick=function(){
this.src=’code.php?tm=math.random()’;
}
6.3点击注册刷新
<form method="post" name='register' action='register.php?action=submit_register'>