Using the submit button to submit the data / using the reset button to reset the form information

There are two buttons may be used, respectively, in the form: Submit button to reset. This section explains the submit button: When users need to submit form information to the server, you need to use the submit button .

Syntax :

<input   type="submit"   value="提交">

type:只有当type值设置为submit时,按钮才有提交作用

value按钮上显示的文字

举例

The results shown in the browser:

 


Use the reset button to reset the form information

When the user needs to reset the form information to the initial state, such as the user inputs "user name", found writing error, you can use the 重置按钮input frame back to the initial state. Just need to type set to "reset" on it.

Syntax :

<input type="reset" value="重置">

type:只有当type值设置为reset时,按钮才有重置作用

value按钮上显示的文字

举例

The results shown in the browser:

 

Guess you like

Origin www.cnblogs.com/iBoundary/p/11422279.html