HTML Forms are one of the fragments of a document consisting of basic information, mark up and some specialized elements called ‘Controls’, which carry ‘labels’ upon themselves. Such controls may be Check-boxes, Menu, Radio buttons, and many more.
A form is generally completed by enhancing its Controls through ‘Enter text’, or ‘Selecting Menu Item’, and is then submitted to whomsoever concerned.
A Control has an initial value, and a current value, the two factors which eventually determine the value of the specified control. The initial value is fixed, but the current value may vary according to the scripts applied by the user. If the control does not have an initial value, the control is said to be dormant in the form.
The various types of controls present on HTML Forms are:
* Buttons- The ‘Submit’ button is used for the submission of a form, when completed. The ‘Reset’ button brings all the control values to their initial ones. The ‘Push’ button functions according to the requirement of the user, and in accordance with the event concerned.
* Check-boxes and Radio Buttons- They are similar to on/off switches, which only when turned ‘on’, are successfully submitted along with the form. The ones which are ‘off’ remain dormant all throughout.
* Menu- This control provides the user with a wide range of options to choose from.
* Text Input- HTML business forms allows users to input their choice of text, in reference to the required subject.
* File Select- Additional files which provide considerable reference to the context may also be selected along with the form.
* Hidden Controls- This control allows users to add files which are not visible with the form, but are actually submitted.
All the Controls are constrained inside a form element, which altogether specifies the basic layout of the HTML Forms, the program that handles the completed and submitted form. This element also denotes the format through which the data is to be sent to the server. In addition to the above, it also encodes the character for the server, necessary in order to access the form.
HTML Forms must be submitted to the processor using the HTTP methodology, as specified by the ‘method’ attribute of the concerned Form. There are two HTTP methods, namely, ‘get’ and ‘post’ methods. If the form causes some modifications in the processing unit, then a ‘post’ method is applied, otherwise, the ‘get’ is much more popular.
The steps to process the data from HTML forms are as follows –
* The successful controls of the given form are correctly identified.
* The current value of the successful controls is studied, and arranged in a sequence, called a form-data set.
* The form-data set is then sent for encoding according to the content type in the Form.
* Finally, the encoded data is sent to the processing agent using the specified protocol. But it may be up to the processor to render the form valid or not.
Showing posts with label Html Form. Show all posts
Showing posts with label Html Form. Show all posts
Monday, September 20, 2010
HTML Forms- now no more spammers fear
Wednesday, September 1, 2010
Making Html forms
If you own a website and offering some services than you surely need feedback of your users, to monitor your sales or to give them latest information about your new products. For this you can use HTML forms which are simple to format as per your requirement. The typical example of an HTML forms can be seen on any blog where you are asked to fill in three criteria prior posting a comment. They are namely Name, Email Address, and Message (comment).
Drafting an HTML forms is not a difficult task but it requires a little bit of information/knowledge about the HTML language which is used in the drafting of these forms. This three category form generally uses a “mailto” function, which helps in sending the filled in information to a specific address.
For more clarification let’s give each step of an HTML forms a close look.
The first line is generally the beginning of the HTML tag and which also holds the Email address that is intended to receive the message.
Name- This is the field where the visitors fills in the name to post a message on the site. “” is an HTML tag for a new line. When you use it as “name” in the edit box, you can edit the dimension of this field as well.
Email- Like in the name column you can label and modify the dimensions of the Email column as well. Email column is considered as an important column because; it is that column form where you get the details about your visitors for contacting them.
Message- This box doesn’t come under the edit category because more space is required by it. Though, we can adjust its width and height of this box by altering the rows and columns in it.
Next thing that comes in the HTML forms is the Save Comment button, which you can label by changing the “value” property as per the format of your website.
Once you have properly closed the HTML tag of your HTML email form script, you are done with your first HTML form.
HTML forms are considered as the safest method to collect information from the users over other trivial method of listing of Email addresses. The trivial methods of data collection were more prone to hackers, who can bombard your inbox with unwanted mails; HTML forms are advancement over it.
Drafting an HTML forms is not a difficult task but it requires a little bit of information/knowledge about the HTML language which is used in the drafting of these forms. This three category form generally uses a “mailto” function, which helps in sending the filled in information to a specific address.
For more clarification let’s give each step of an HTML forms a close look.
The first line is generally the beginning of the HTML tag and which also holds the Email address that is intended to receive the message.
Name- This is the field where the visitors fills in the name to post a message on the site. “” is an HTML tag for a new line. When you use it as “name” in the edit box, you can edit the dimension of this field as well.
Email- Like in the name column you can label and modify the dimensions of the Email column as well. Email column is considered as an important column because; it is that column form where you get the details about your visitors for contacting them.
Message- This box doesn’t come under the edit category because more space is required by it. Though, we can adjust its width and height of this box by altering the rows and columns in it.
Next thing that comes in the HTML forms is the Save Comment button, which you can label by changing the “value” property as per the format of your website.
Once you have properly closed the HTML tag of your HTML email form script, you are done with your first HTML form.
HTML forms are considered as the safest method to collect information from the users over other trivial method of listing of Email addresses. The trivial methods of data collection were more prone to hackers, who can bombard your inbox with unwanted mails; HTML forms are advancement over it.
Tuesday, August 31, 2010
Basic HTML forms
Hypertext Markup Language (HTML) is the predominant markup language for the creation of web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code which can affect the behavior of web browsers and other HTML processors.
An HTML form is a document that contains content that translates the human language to computer language and controls and dictates the interaction of various web pages with their users. HTML forms are also used to display queries and data in a schematic and organized manner. Forms are usually scripted in a language such as PHP, PERI, ASP, ASP.NET, etc
Some of the various controls involved in the functioning of a form are:
Buttons: There are usually three kinds of buttons - submit, reset and push. A submit button submits the form to the owner of the webpage. The reset button is used to reset the controls. And the push button which has no default behaviour on its own. Whenever the client presses the “push” button the client-side of the script is activated.
Checkboxes: Checkboxes are options that may be manipulated by the user. The switch is considered on, when a particular attribute of the checkbox is “checked”.
Radioboxes: Radioboxes and checkboxes are similar, except that radio buttons do not allow multiple selection/options.
Menu: Menus offer options to navigate the website and also provides a systematic path, so that a visitor does not lose his way inside the site.
File select: This control allows the user to select files, such that the contents of the file can be put on the form. For instance, a button saying “browse” falls under this category.
HTML is one of the most popular scripting languages in the world and can display a variety of colours, fonts, text, graphics, etc. Compared to other scripting languages HTML is fairly easy to use and is not case specific. It is also completely free and there is no need to buy any specific software to use it.
An HTML form is a document that contains content that translates the human language to computer language and controls and dictates the interaction of various web pages with their users. HTML forms are also used to display queries and data in a schematic and organized manner. Forms are usually scripted in a language such as PHP, PERI, ASP, ASP.NET, etc
Some of the various controls involved in the functioning of a form are:
Buttons: There are usually three kinds of buttons - submit, reset and push. A submit button submits the form to the owner of the webpage. The reset button is used to reset the controls. And the push button which has no default behaviour on its own. Whenever the client presses the “push” button the client-side of the script is activated.
Checkboxes: Checkboxes are options that may be manipulated by the user. The switch is considered on, when a particular attribute of the checkbox is “checked”.
Radioboxes: Radioboxes and checkboxes are similar, except that radio buttons do not allow multiple selection/options.
Menu: Menus offer options to navigate the website and also provides a systematic path, so that a visitor does not lose his way inside the site.
File select: This control allows the user to select files, such that the contents of the file can be put on the form. For instance, a button saying “browse” falls under this category.
HTML is one of the most popular scripting languages in the world and can display a variety of colours, fonts, text, graphics, etc. Compared to other scripting languages HTML is fairly easy to use and is not case specific. It is also completely free and there is no need to buy any specific software to use it.
Labels:
Forms,
Html Form,
Html Forms,
Web Form,
Web forms
Subscribe to:
Posts (Atom)