在firefox下image.php的编码为asni时才显示,但点击后就不会刷新了。但要把所有文件改成utf8,image.php生成的图片则不显示。请哪位高手指点一下login.phpmy
sql_connect("localhost",$user,$pwd);mysql_select_db("test");mysql_query("setnamesutf8");$query=mysql_query("select*fromareawhereid<100");?>
姓&;nbsp;&;nbsp;&;nbsp;&;nbsp;名:
密&;nbsp;&;nbsp;&;nbsp;&;nbsp;码:
确认密码:
性&;nbsp;&;nbsp;&;nbsp;&;nbsp;别:男女
e-mail:&;nbsp;&;nbsp;
籍&;nbsp;&;nbsp;&;nbsp;&;nbsp;贯:PHPECHO$RW[‘ID‘];?>
xml:namespace prefix = divid="验证码"style="width />oat:left;height:20px;">验证码:
check.php注册";}else{echo"用户名存在";}}else{echo"不能为空格";}?>checkpic.php $str=$_post[‘str‘];$session=$_session[‘str‘];if($session==$str){echo"ok";}else{echo"wrong";}?>selectplace:".$rw[‘name‘]."";}}?>
check.jsfunctioncheckname(){varname=$("#username").val();if(name){$.ajax({type:"post",url:"check.php",data:"name="+name,success:function(msg){$("#tipname").html(msg);}});}else{alert("不能为空");}}
functionpwd(){varpwd=$("#password").val();varlen=pwd.length;if(len<6){alert("密码长度小于6");}}functioncheckp(){varpwd=$("#password").val();varcheckp=$("#checkpassword").val();vartipp=$("#tippwd").html();if(checkp!==‘‘){if(pwd==checkp){tipp=$("#tippwd").html("密码验证成功");}else{tipp=$("#tippwd").html("两次密码输入不同");}}else{alert("验证密码不能为空");}}functioncheckeamil(){varemail=$("#email").val();vartipe=$("#tipemail").html();vararr=email.split("@");vararr1=email.split(".");if(arr.length>1&;&;arr1.length>1&;&;arr[1]!==""&;&;arr1[1]!==""&;&;email.length>=8){tipe=$("#tipemail").html("格式正确");}else{tipe=$("#tipemail").html("邮箱格式不正确");}}functionchangeplace(aa,bb){varproid=$("#"+aa).val();if(proid){$.ajax({type:"post",url:"selectplace.php",data:"id="+proid,success:
function(msg){$("#"+bb).html(msg);}});}}functionchangepic(){varnum=math.random();$.ajax({type:"post",url:"login.php?num="+num,data:"name=name",success:function(msg){$("#pic").html(