4-1 表單 (Forms)

]Forms^O HTML @ӭnҡC@몺 HTML ҡAuOFΨӧe{TAHKϥΪ̦bȤsC椣uOe{T\A󭫭nOA]tFƺت椸]Form Elements^AiHϥΪ̶iƶgο\AñNϥΪ̩ҶgưeAݡAi楲nBzC]ڭ̥iHANOȤݩMAiTqĤ@ӪC

NϥΪ̿JưeAAAݥ۹諸{ӹƶiBz]ҦpeJƮwζiέpR^Cѩ󥻳ݩ HTML dåA]ڭ̥u|Ъb HTML lXAΨbҧe{~[CbAݡBBzƪBz{AbäСAṶ̄YAiۦѦҦ ASPBCGI Perl `C

ҿסuʻDp@vAڭ̥ݬݤ@Ӫ檺²dҡG

Example]form01.htm^G

WzdҪlɮצpUG

lɡ]form01.htm^G]ǦϰUYi^
<HTML>
<BODY>
<FORM action="mailto:test@cs.nthu.edu.tw" method="post">
	WrG<INPUT name="myname" size=10 maxlength=20 value="Ȱa"><P>
	KXG<INPUT name="passwd" type=password size=8 maxlength=8><P>
	ʧOG<INPUT name="sex" type=radio value="k">k
	     <INPUT name="sex" type=radio value="k" checked>k<P>
	ݦn]iƿ^G
		<INPUT name="f1" type=checkbox value="book">\Ū
		<INPUT name="f2" type=checkbox value="sport" checked>B
		<INPUT name="f3" type=checkbox value="music" checked>
		<INPUT name="f4" type=checkbox value="sleep">ı
		<INPUT name="f4" type=checkbox value="talk"><P>
	<INPUT type="submit" value="eX">
	<INPUT type="reset" value="sJ">
</FORM>
</BODY>
</HTML>

ѤWzdҥiݥXAO form ҩҧΦAi]tƭӿﶵAaction NBzT{Amethod hNTǰekCbWҤAaction O]w@ӹqllbA]ϥγoUueXvɡAҦbJơA|Qe즹qllC]WҤlbOügA]pGANeXA̫i|DhC^ method ﶵAbӽ͡AŪ̥iѦҦ ASP CGI `C

b椺A٦\h椸]Form elements^AHKϥΪ̿JơCHWҦӨAoǪ椸ҳO inputAîھ type PAӦP\C


HTML ²P