form表單
<form name ="myfom" action="/.test.php" method="get">
<input name="user" type="text" />
<input type="submit" value="提交">
</form>
get 和post:1~數(shù)據(jù)提交方式不同,get提交URL可見(jiàn),post看不見(jiàn) 2~get提交少量數(shù)據(jù),post提交大量數(shù)據(jù)3~get最多提交1k數(shù)據(jù),受瀏覽器限制,post理論上無(wú)限制,受服務(wù)器限制4~get數(shù)據(jù)在瀏覽器中,安全性不好。
input
type="password"輸入密碼,顯示星號(hào)
type="radio"選擇圓圈框 name值相同時(shí),在相同值內(nèi)只能選擇一個(gè) 加checked默認(rèn)選中
type="checkbox"復(fù)選框
placeholder:默認(rèn)顯示文字
<textarea>文本域,輸入多行文字
type="hidden"隱藏域,用戶看不到,用于暫存數(shù)據(jù),或安全性檢驗(yàn)