當您按Register時,它應該添加一個帶有一些輸入字段的表單,但它不起作用。PHP,不會顯示我的輸入字段
<form>
<input Action="SlutProjekt.php" type="submit" alt="Submit" method="post" name= "Register" value="Register" id="input">
</form>
<?php
if(isset($_SESSION['Register'])){
$RegisterPost = htmlspecialchars($_POST["Register"]);
?>
<li>
<form>
<input type="email" Action="SlutProjekt.php" method="post" name="RegisterEmail" placeholder="Email" >
<input type="password" Action="SlutProjekt.php" method="post" name="RegisterPw" placeholder="********" >
<input type="text" Action="SlutProjekt.php" method="post" name="RegisterAdress" placeholder="Adress" >
<input type="submit" Action="SlutProjekt.php" method="post" name="RegisterConfirm" alt="Submit" value="Register">
</form>
</li>
<?php } ?>
在form標籤處添加'method =「post」和action'不是你的'輸入標籤'並在表單標籤內添加submit按鈕 – Saty
它甚至不在php聲明標籤之間,什麼是echo <<< Meny ?你能發佈完整的代碼嗎? – Nadir
這應該是基本的。:( – Yodamatte