欢迎来到天天文库
浏览记录
ID:50068325
大小:168.00 KB
页数:13页
时间:2020-03-08
《网页制作教程 教学课件 作者 赵丰年 1_chap8-forms.ppt》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Chapter8Forms1ObjectivesExplainwhatformsareandhowtheywork.Listthecommonlyusedformcontrols.Usecommonformcontrolscorrectly.Createusableandwell-laid-outforms.2Whatareforms?Formsprovideaninterfaceallowinguserstointeractinsomewaywithyoursite.Inmostcases,theyar
2、eusedtogatheruserdata,eitherforlateruseortoprovideacustomizedresponseonthefly.Formshaveawiderangeofuses,fromfunctionsassimpleassearchboxes,mailinglistsignups,guestbooks,andsurveystoascomplexasonlinecommercesystems.3Howformswork?Formscollectinputviacontrol
3、s,suchasbuttons,textfields,orscrollingmenus.Controlsareplacedonthepageusingspecialelementsinthemarkup.Theseelementsaremerelyaninterfaceforcollectinguserinformationanddonotactuallyprocessthedata.Therealworkisdonebyforms-processingapplicationsontheserver,su
4、chasCGIscripts,ASP,ASP.NET,PHP,orJSP.4Thebasicformelement
5、mittingtheforminformationtotheserver.5FormcontrolsSingle-linetextentryfieldsPasswordentryfieldsCheckboxesRadiobuttonsSubmitandresetbuttonsFileuploadmechanismsCustomandimagebuttonsMulti-linetextentryfieldsMenusButtons6Inputcontrols6、me”size=“15”maxlength=“50”value=“enteryournamehere”/>7Inputc7、ontrols8Othercontrols8、=“45”>Tellusyourdreamin100wordsorlessChocolate…9、reset10、button”name=“…”value=“…”>Tryagain
6、me”size=“15”maxlength=“50”value=“enteryournamehere”/>7Inputc
7、ontrols8Othercontrols8、=“45”>Tellusyourdreamin100wordsorlessChocolate…9、reset10、button”name=“…”value=“…”>Tryagain
8、=“45”>Tellusyourdreamin100wordsorlessChocolate…9、reset10、button”name=“…”value=“…”>Tryagain
9、reset
10、button”name=“…”value=“…”>Tryagain
此文档下载收益归作者所有