The cgi-lib.pl Home Page
The CGI Resource Index
Forms in HTML documents 17.1 Introduction to forms An HTML form is a section of a document containing normal content, markup, special elements called controls (checkboxes, radio buttons, menus, etc.), and labels on those controls. Users generally "complete" a form by modifying its controls (entering text, selecting menu items, etc.), before submitting the form to an agent for processing (e.g., to a Web server, to a mail server, etc.) Here's a simple form that includes labels, radio buttons, and push buttons (reset the form or submit it): <FORM action="http://somesite.com/prog/adduser" method="post"><P><LABEL for="firstname">First name: </LABEL><INPUT type="text" id="firstname"><BR><LABEL for="lastname">Last name: </LABEL><INPUT type="text" id="lastname"><BR><LABEL for="email">email: </LABEL><INPUT type="text" id="email"><BR><INPUT type="radio" name="sex" value="Male"> Male<BR><INPUT type="radio" name="sex" value="Female"> Female<BR><INPUT type="submit" value="Send"><INPUT type="reset"></P></FORM>
In HTML, one can specify two different submission methods for a form. The method is specified inside a FORM element, using the METHOD attribute. The difference between METHOD="GET" (the default) and METHOD="POST" is primarily defined in terms of form data encoding. Methods GET and POST in HTML forms - what's the difference?
Basic Forms | basic inputs: <form>, text-input boxes, radi Path // → → BASIC FORMS Using simple HTML forms is a very slick way of receiving information from your visitors. You put a few boxes and buttons on your page, they enter in their details and you receive them through email — brilliant. This page was last updated on 2012-08-21
Welcome to the new ANU Policy website. The new site has been developed to provide you with increased search functionality and improved data quality. Further improvements will continue to be made to the site over the coming weeks. ANU - POLICIES - FORMS - FINANCE - TRAVEL