我試圖通過將我的<form>
標記中的數據分成一個文件process.php來存儲多個鏈接到文本文件,除了表單數據isn' t正在提交。之後,鏈接應該可點擊和刪除。(PHP)將表單數據放入文本文件
現在我有這個在我的index.php:
<form action="process.php" method="post">
Name:<input type="text" name="name">
link:<input type="text" name="link">
<input type="submit">
</form>
這是process.php貌似現在
print "Website:". $name;
print "link:". $link;
現在,當我輸入的東西,並提交過程.php不顯示數據,只有網站:和鏈接:從print
。
我也想不出哪裏放一個<a href="">
標籤的PHP內部,鏈接變成可點擊...
我開始學習PHP昨日,幫助將不勝感激了很多!
我想嘗試後數據之前,你應該收集有關PHP和HTML的一些基本知識。 – rinukkusu
現在你的代碼甚至是無效的,你在'process.php'之後錯過了一個'''' – ponciste