第1个回答 2012-07-06
test.php页面代码如下:
<html>
<head></head>
<body>
<form action="test.php" method="post">
<input type="submit" name="点击自动刷新" value="submit"/>
</form>
<?php
if(!empty($_POST[''submit']))
echo "马上刷新";
header("location:test.php");
?>
</body>
</html>