1
<script language=javascript>
function is(form1){
if(form1.pass1.value!=form.pass2.value){
alert("密码不一样");
return false;
}
else
{
return true;
}
}
</script>
<form action=xxx.php method=post onsubmit="return is(this)" name=form1>
1密码<input type=password name=pass1>
<br>
2密码<input type=password name=pass2>
<input type=submit value=send>
</form>
2
select * from tablename where name='name'