將
<input type="button" name="refresh" value="Refresh" onclick="history.go(0);">
更改為:
<input type="button" name="refresh" value="Refresh" onclick="window.location='<?=$PHP_SELF?>'">
<input type="button" name="refresh" value="Refresh" onclick="history.go(0);">
更改為:
<input type="button" name="refresh" value="Refresh" onclick="window.location='<?=$PHP_SELF?>'">
但是如果我没有这个refresh button,但是我又想在刷新的时候,不提交呢?
echo "<script>window.location='$PHP_SELF'</script>";即處理以後馬上重新倒入這個頁面
header("location:$PHP_SELF");
這個你應該知道吧