我想保存表單數據,將其轉換爲php(我已經獲得了該部分,它的設計和樣式使用了css)我想保存它,以便表單可以在頁面上供所有人查看,以便在刷新頁面時,具有表單信息的div停留在那裏。我想保存在div上的表單信息,以便它在刷新頁面時保持在頁面上
<form name = "quoted" form action="genericwebpage.html" method="post">
<input id = "poster" type="text" name="poster" placeholder = "Credited Individual."> <br>
<textarea class = "actual-quote" name = "actual-quote"placeholder = "Write the quote here!"></textarea><br><br>
<input id = "submit1" type="submit">
</form>
這裏是在網頁上找到的php。
<div class="wrapper">
<div class="submissions">
<div class="logo-logo"><h2>Generic.</h2></div>
<div class="top-submit"><?php echo $_GET['actual-quote']?></div>
<div class="poster"><?php echo $_GET['poster']?></div>
</div>
任何建議,非常歡迎。 謝謝! -Connor
如果該方法是發佈,您應該使用$ _POST而不是$ _GET – pah
或嘗試$ _REQUEST –
您的意思是您想要先將數據保存在數據庫中,然後通過從提供的數據庫中提取數據? – Baig