1>form1
<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Untitled Document</title></Head><Body> <formAction=""> <inputtype= "text" /><!--single-line text - <inputtype= "Password" /><!--Password Box - <inputtype= "Radio" /><!--Radio Box - <inputtype= "checkbox" /><!--check box - <inputtype= "hidden" /><!--Hidden Fields - <inputtype= "Submit" /><!--Submit Button - <inputtype= "File" /><!--file Fields - <inputtype= "Reset"value="" /><!--Reset button - <inputtype= "button"value="" /><!--Button - <textarea></textarea><!--Text Area - <Select> <option></option> </Select><!--Drop- down box - </form></Body></HTML>
2>form2
<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Website User Personal Data survey</title></Head><Body> <!--action is used to specify a script to receive information - <!--The method property is used to specify how the data is transferred - <formAction= "post.php"Method= ' Post '> <inputtype= "hidden" />your current location:<inputtype= "text"value= ' Baidu net 'Disabled= ' disabled '/> <BR/><BR/> <label for= ' uname '>User name:</label><inputID= ' uname 'type= "text"size= ' + 'maxlength= ' Ten 'name= ' uname 'value= ' Zhang San '/> <BR/><BR/>Password:<inputtype= "Password"name= ' pwd '/> <BR/><BR/>Gender: Male<inputtype= "Radio"name= ' sex 'value= ' 1 'checked= ' checked '/>Woman<inputtype= "Radio"name= ' sex 'value= ' 0 '/> <BR/><BR/>Hobbies: Basketball<inputtype= "checkbox"name= "hobby[]"value= ' Lanqiu '/>Volleyball<inputtype= "checkbox"name= "hobby[]"value= ' Paiqiu '/>Football<inputtype= "checkbox"name= "hobby[]"value= ' Zuqiu '/>Table Tennis<inputtype= "checkbox"name= "hobby[]"value= ' Pinbgpangqiu '/> <BR/><BR/>The purpose of coming here:<Selectname= "Target"size= ' 2 'multiple= ' multiple '> <optionvalue= "First">First</option> <optionvalue= "Second"selected= ' selected '>Second</option> <optionvalue= "Third">Third</option> <optionvalue= "Forth">Fourth</option> </Select> <BR/><BR/>Personal Introduction:<textareaname= "Jieshao"rows= ' Ten 'cols= ' + '></textarea> <BR/><BR/>Personal Photos<inputtype= "File" /> <BR/><BR/> <inputtype= "Submit"value= "Update Information" /> <inputtype= "Reset"value= "Reset"/> <inputtype= "button"value= "button"/> <BR/><BR/> </form></Body></HTML>
HTML Learning Note--post form