我怎樣才能使HTML表單提交dissepear後,它會顯示按鈕,使形式再次重現疏通結果呢?將HTML表單dissepear後提交
<?php
if(isset($_POST['submit']))
{
$name = $_POST['name'];
echo "User Has submitted the form and entered this name : <b> $name </b>";
echo "<br>You can use the following form again to enter a new name.";
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="name"><br>
<input type="submit" name="submit" value="Submit Form"><br>
</form>
請檢查該代碼,它按照工作您的要求 – 2013-02-22 10:02:00
感謝無論如何使他們再次出現? – cton453 2013-02-22 10:11:29
重定向頁面相同的URL,可以使用'標題(「位置:你url.php」);' – 2013-02-22 10:13:39