表單from標記tags

1.表單的基本語法
<form action="url" method=*>
...
<input type="submit"> <input type="reset">
*=get,post
2.表單中提供給用戶的輸入形式
<input name="**" type="*">
*=text,password,checkbox,radio,image,hidden(隱藏表單元素),submit,reset<br>
**=Symbolic Name for CGI script
size=40(控制輸入框長度) maxlength=5(控制最多輸入的字符) 3.列表框(Selectable Menu) 基本語法
<select name="*" size=3(顯示個數)multiple(可多選)>

<option>...</option>
</select>

4.文本區域
<textarea name="*" rows="**" cols="**">


</textarea>
<textarea name="comment" rows="5" cols="60"></textarea>
<p><input type="submit"><input type="reset"></p>
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章