|
How to make a web form
This tutorial explains the basics of a web form, how it works and how you can make a
web form from scratch.
Note: Using Simfatic Forms you can
create feature rich web forms without coding.
Click here for more info. How does a web form work?
The parts of a web form
A standard web form has the following parts:
1. The HTML code for the form
HTML has tags for creating a web form and the input elements.
The HTML Form Tutorial
contains detailed explanation of how to compose a web form.
Here is some sample code for a simple HTML form:
2. The input validations
Input validations are essential for any web form since it helps the web site visitor
submit the right input. Input validations are often written in
the client-side scripting language - JavaScript. (JavaScript runs inside the visitor's
web browser and gives quick feedback).
The JavaScript Form Validation script can help in quickly attaching the input validations to your form.
It is required to do the validations on the server side as well. This is because JavaScript is an optional component that can be disabled and avoided. The server-side script should make sure that the data it processes is a valid form submission. Note: Java and JavaScript are entirely different languages. There is nothing common between them. 3. Form Processor Script
When you submit a web form, the web browser looks for the 'action'
attribute of the <form> tag.
For an example, in the sample HTML form code above, the action attribute points to
a script located at /cgi-bin/formmail.pl. The web browser sends the form
submission data to the script mentioned in the 'action' attribute.
The server side script can be in Perl, PHP or ASP depending on what the web server supports.
The action-script on the server can be custom made or can be a ready-made one. Making a web form
To make a complete web form, you need to code these three parts of the form.
Note that the JavaScript input validation part is completely optional though the client side validation can make the form more user-friendly.
Make complete web forms without coding!
Getting all the parts of a web form is not easy. Coding a web form is time consuming.
Try Simfatic Forms.
You can visually design the form and get all the code generated.
Even newbies can roll out feature-rich web forms quickly.
Read more here:
How to make a web form quickly |
|
. Copyright © 2003-2009 JavaScript-coder.com. All rights reserved. |
||