<input name="sub_rand" type="hidden" id="sub_rand" value="<?php echo rand(10000,100000000000);?>" />
if($_SESSION['SUB']==$_POST['sub_rand']){
echo '<script>alert("不能重复提交数据!!操作失败!!");window.location.href="错误后要跳转的页面"; </script>'; break;
}else{
$_SESSION['SUB']=$_POST['sub_rand'];
}