HTML - Submit Buttons

The submit buttons are another use of the <input> tag. Those will show a typical button, which will perform the action of sending the form.

<input type="submit" value="Submit" /><br />

<input type="submit" value="Send" /><br />

<input type="submit" value="Continue" /><br />



 

As you can see we made a variation of sending buttons, changing the value of the value attribute. This can be modified depending on the necessities.


Submit - The sending

For a submit button to work correctly it is needed its placing in the <form> tag and also of a few other attributes. Those will be method and action. Also, we will need a file in PHP, PERL or ASP, to fully complete this action.

Another option would be to set the value of the action attribute as mailto, followed by an e-mail address, and the form will be sent to the e-mail address.

<form method="post" action="mailto:email@exemple.com" >

Name:<input type="text" name="Name" size="15" maxlength="15" />

Last Name:<input type="text" name="Last name" size="25" maxlength="25" />

<input type="submit" value="Send email" />

</form>

Name:

Last Name:

 

Just change email@exemple.com email with your order form that will be functional.