web应用基砒
Web应用基础
Http a Hyper-text Transfer protocol 口无状态协议( stateless) URL Request Request Intemet Response Response 浏览器 服务器 程序 程序 TCP
HTTP Hyper-text Transfer Protocol 无状态协议 (stateless) 浏览器 程序 服务器 程序 Response Internet Request Request URL Response TCP
Http Get and post <form action="form. cgi" method= get id= formId"> ast Name: <input type="text" id="lastName"value=> First Name: < input type="text" id="firstName"value=> </form> <form action="form. cgi method ="post id="formID"> Last Name: <input type="text"id="lastName"value=> First Name: <input type="text" id="firstName"value=> </form> 回忆 JavaScrip中表单提交如何处理?
HTTP Get and Post <form action="form.cgi" method="get" id="formID"> Last Name: <input type="text" id="lastName" value=""> First Name: <input type="text" id="firstName" value=""> </form> <form action="form.cgi" method="post" id="formID"> Last Name: <input type="text" id="lastName" value=""> First Name: <input type="text" id="firstName" value=""> </form> 回忆JavaScript中表单提交如何处理?
Javascript表单处理 <script language="JavaScript >< processFor0{… ></script> <p>Please input your last and first name. Click <b>Submit </b>when you are finished. </p> <form name= formName"id=formID> Last Name: <input type="text" id= lastName" value=> First Name: <input type="text" id="firstName"value=> <input type="button"name="next"value="Submit onclick="processFormo"></p> /form>
JavaScript表单处理 <script language="JavaScript"><!— processForm(){ … } --></script> <p>Please input your last and first name. Click <b>Submit</b> when you are finished.</p> <form name="formName" id="formID"> Last Name: <input type="text" id="lastName" value=""> First Name: <input type="text" id="firstName" value=""> <input type="button" name="next" value="Submit" onclick="processForm()"></p> </form>
Http Get and post 口一般而言,get用于从服务器上获取数据,post 用于向服务器传送数据 口get是把参数以字符串形式加到URL中,而post将 参数放在HTML报文的头部进行传送 http://www.google.cn/search?hl=zh-cn&inlang=zh-cn& newwindow=1&q=http&meta=
HTTP Get and Post 一般而言,get用于从服务器上获取数据,post 用于向服务器传送数据 get是把参数以字符串形式加到URL中,而post将 参数放在HTML报文的头部进行传送 http://www.google.cn/search?hl=zh-CN&inlang=zh-CN& newwindow=1&q=HTTP&meta=