Form Submission – Action
Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008
0
For a submission button to accomplish anything it must be placed inside of a form tag with an action and a method. The action is always set to a server side scripting file such as a PHP, PERL, or ASP file. Another choice may be to set the action to mailto followed by an email address, and the form will be emailed to the specified address.
Mailto has been depreciated, however for the purpose of this example and to get a feel for form submission, it will work great in our example.
Example:
- <form method=”post” action=”mailto:youremail@youremail.com” >
- First:<input name=”First” size=”12 maxlength=”12″ />
- Last:<input size=”24″ maxlength=”24″ />
- <input value=”Send Email” />
- </form>
