這是我的文件,命名爲phonebook.php並在它的代碼是
<html>
<head>
<title>
Phonebook
</title>
</head>
<body>
<form methed="post" action="phpfile.php">
<label>First Name</label>
<input type="text" name="first_name"><br />
<label>Last Name</label>
<input type="text" name="last_name"><br />
<label>Contact No</label>
<input type="int" name="contact_no"><br />
<label>Email</label>
<input type="text" name="email"><br />
<input type="submit" value="Add Contact">
</form>
</body>
</html>
,並且在形式上鍊接文件是phpfile.php
<?php
print_r($_POST);
?>
和我所得到的phpfile輸出。 PHP是 陣列() 當我在表格並按下提交按鈕輸入數據的唯一輸出我得到的是 陣列()
必須'方法'不'方法' – winresh24
哦男人 我怎麼可以出售它錯了 取代metthe方法和thanx現在它的工作! –
你也不能拼寫「拼寫」或「感謝」。 :) – Barmar