<form name="myForm" action="http://www.PuStudy.Com/resources/html-forms-action.html"> <input name="myInputField"> <button>Submit</button> </form>
The above example demonstrates usage of the
<input> element with the
name attribute provides the name of a form control. The value provided by the
name attribute is submitted with the form and can be used by any script that processes the contents of the form.
Any value can be provided, however, the following values have special meaning (as outlined in the HTML5 specifications):
application/x-www-form-urlencodedmechanism, causes the submission to only include the value of this control, with no name.
valueattribute, is automatically given a value during submission consisting of the submission character encoding.