NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
Home / News / Webmaster / Tips and Tricks

Tips and Tricks


The General Mechanism of Forms Processing

POST and GET Methods

By Catalin Bocanu, Web News Editor

25th of September 2007, 15:17 GMT

Adjust text size:


The Editing of Form Properies with Front Page
Enlarge picture
After you have met the basic concepts of HTML, you might want to discover HTML forms. As you already know, the form design is easy to accomplish by using WYSIWYG editors, which allow you to visually construct the form structure using drag and drop actions. But just the standalone form will not help you in receiving the feedback from your users, in a contact form for example. The form does not work by itself.

The HTML file where you put the form code will determine the display of the form only on the client side. After the client will fill in the form and hit the submit button, depending on the form action, a server side script should process the form in order for you to obtain the form data. Let's consider a simple form, where you request the name and email to your site visitors:


CODE
Name:

Email:




The input fields
of type text have some default predefined values and names. When the site visitors hits the Submit button, the content of the form will be processed by a file executed on the server side and the data will be sent using method post. There are two methods to send form data: post and get, and many other options for selecting the form processor script. The form processor script could be of PHP or ASP type for example, depending on your web hosting account.

The script needed for the form processing could send the form data after processing to a datatabase, an email address or another HTML page. For example, a quiz form will usually have the content sent to a database, while a contact form data will go to an email address. The get method is less secure and not recommended to manipulate form data, because it includes the form content in the URL of the page. In this way, secret data, such as credit card accounts or email addresses will appear in the URL name before processing.

Another disadvantage is the limited size of the information that could be sent by using the get method. On the other side, the post method is more secure, because it separates the form content from the page URL and it has not the same limitations concerning the minimal data size that can be sent from a form. There are also situations when the get method is useful, such as when you want to send the data from a search web form. The modality of forms processing will influence the dynamic character of your website when user interaction appears. The form content validation, besides the processing actions, is also important for you in order to obtain the correct data from your site users.

TAGS:

FORM PROCESSING | FORM PROCESSOR | POST AND GET | FORM TO EMAIL | HTML FORMS


Rating:
Good (3.2/5) 5 vote(s) so far    

Read by 606 user(s) | Add comment | Link to this article
Subscribe to news | Print article | Send to friend

© Copyright 2001-2008 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


How to Insert a Secure Form Mailer in Wordpress

Tips for HTML Forms Design

Best Plugins for Wordpress

Is Your E-mail Secure?

Get Domain Name Information with Whois

User opinions:

No user comments yet.
Be the first to express your opinion using the form below!

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 






SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM