php保存submit内容之后禁止刷新
$strsql = insert into `xxx` (`aaa`) values ('.$_post[bbb].','.$_post[ccc].',,now());
[email protected]_query($strsql,$my_con);
[email protected]_affected_rows();
testecho ($y.mysql_affected_rows(). $errcode .$strsql); #debug
mysql_sql_log($strsql,mysql_affected_rows(),$_server['script_name'].:.__line__);
if($maxrow>0){
$insertflag =1;
}
echo '';
重点是最后一句,在insert完之后,重新载入一次页面,并且加上参数,然后在页面上写个判断,又get的参数并且为1的时候disabled。