HTML tutorial-submit button


Submit button

The <input type="submit" /> tag creates a submit button that can send the collected information to a server. To send the information to the server, the action and method attributes of the form need to be used.

Example:

<html>

<head>

<title>Button</title>

</head>

<body>

<form name=”form1” action=”Button.html” method=”get”>

<input type="checkbox" name="sex" value="F"  checked / > Female<br />

<input type="checkbox" name="sex" value="M" />Male

</form>

</form>

</body>

</html>

submit button 

If you make change to the check boxes and click the "Send" button, the browser will send you’re the gathered information to a page called "Button.html". The page will show you the received information.




This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.