一、form表單中get和post兩種提交方式的區別?
1.get提交表單中的內容在鏈接處是可見的。post不可見
2.post相比於get是安全的
3.post不受限制大小,get有限制大小。但不管怎么提交到服務器中會有提交長度和大小的限制,例如Tomcat中server.xml中maxparametercount和maxpostsize分別限制最大長度和最大的字節數。如果想從后台觀察發送了多大的數據量。可以通過request.getContentLengthLong獲取。
二、復習checkbox
優秀<input type="checkbox" name="check" value="優秀">
合格<input type="checkbox" name="check" value="合格">
普通<input type="checkbox" name="check" value="普通">
三、復習radio
優秀<input type="radio" name="radio" value="優秀">
合格<input type="radio" name="radio" value="合格">
普通<input type="radio" name="radio" value="普通">