// 随机活动
$rand_list = array() ;
$result = $mysqli->query("select * from activity order by rand() limit 8");
while($row =$result->fetch_array()){
$rand_list[] = $row;
}
?>
$(function(){
$('form[name="form_submit"]').submit(function(){
var name = $('#name').val();
var password = $('#password').val();
if(!name.length){
$('#name').focus();
return false ;
}
if(!password.length){
$('#password').focus();
return false ;
}else{
if(password.length<7)
{
alert('密码长度必须6位以上');
return false ;
}
}
});
})