這里name是什么意思,value又是什么意思呢?
<form method="post" action = "save.php">
? ? ? <label for="username" style = "float : left; margin-top : 0px ; text-color = "red";">用戶名:</label>
? ? ? <input type="text" ?name="username" id="username" value="" /><br><br>
? ? ? <label for="pass" style = "float : left; margin-right :8px;">密 碼:</label>
? ? ? <input type="password" ?name="pass" id="pass" value="" /> ? ?<br><br>
? ? ? <input type="submit" value="確定" ?name="submit" />
? ? ? <input type="reset" value="重置" name="reset" />
2018-04-27
name->傳入后臺數(shù)據(jù)以數(shù)組形式保存,形成對應的數(shù)據(jù)數(shù)組顯示的鍵名,前端頁面?zhèn)魅霐?shù)據(jù)后,有這樣一個標識方便后臺PHP程序員識別和使用,value->是給它傳入一個默認值,在不輸入任何數(shù)據(jù)情況下點擊提交傳送到后臺的就是默認的value值,傳入數(shù)據(jù)顯示代碼如下: