Hashemian Blog

Web Tools, Financial Markets, Technology

Wednesday, January 10, 2007

HTML Forms, Part 2 

Click here to read Part 1

There are really many steps that a browser goes through to display a web page or post some data to it. For the purposes of this discussion, a simplified process consists of a request and a response. The browser makes a request to a server for a particular page, and the server returns the data to the browser in the form of a response.

There are a few types of requests a browser can issue using commands that are generally known as 'verbs'. The most widely used verb is GET. Whenever you visit a web page, your browser issues a GET command to the server along with some other parameters and the server obliges by returning the data for the particular page.

In fact you are reading this very page because your browser made a GET request to www.hashemian.com and specified this page. The server then returned this page to your browser in a raw format. Your browser then rendered it as you see now.

But what happens when you submit a form to a page? In that case the page generally contains a FORM tag like this:
<form method="POST" action="some_page">
some form elements such as <INPUT> here
a submit <BUTTON> here
</form>
Notice the POST verb specified as an attribute of the form tag. When you click on the Submit button, the data you entered on the form is sent to some_page using the POST verb. The POST verb is similar to the GET verb but there are some additional data. The browser contacts some_page, issues the POST command, it also specifies Content-Length and Content-Type.

Content-Length is the character length of the data that you have submitted to the page, while Content-Type specifies the format of the data. The data format, known as MIME type, is generally specified as application/x-www-form-urlencoded. That signals to the server that data was encoded in a specific format so the server can figure out how to decrypt and use the data. We'll delve into more details on POST in part 3.
,,,,

Labels: ,

<HTML Forms, Part 2>

0 comments

0 Comments:

Post a Comment

This page is powered by Blogger. Isn't yours?

Links
  • Hashemian Blog Feeds
  • Add to Google
  • Read Hashemian.com/blog/ with Bloglines
  • Subscribe to Hashemian.com/blog/ with My Yahoo!
  • Technorati Profile
  • TMCnet.com
  • ARCHIVES
  • 09/01/2003 - 10/01/2003
  • 03/01/2004 - 04/01/2004
  • 04/01/2004 - 05/01/2004
  • 05/01/2004 - 06/01/2004
  • 06/01/2004 - 07/01/2004
  • 07/01/2004 - 08/01/2004
  • 08/01/2004 - 09/01/2004
  • 09/01/2004 - 10/01/2004
  • 10/01/2004 - 11/01/2004
  • 11/01/2004 - 12/01/2004
  • 12/01/2004 - 01/01/2005
  • 01/01/2005 - 02/01/2005
  • 02/01/2005 - 03/01/2005
  • 03/01/2005 - 04/01/2005
  • 04/01/2005 - 05/01/2005
  • 05/01/2005 - 06/01/2005
  • 06/01/2005 - 07/01/2005
  • 07/01/2005 - 08/01/2005
  • 08/01/2005 - 09/01/2005
  • 09/01/2005 - 10/01/2005
  • 10/01/2005 - 11/01/2005
  • 11/01/2005 - 12/01/2005
  • 12/01/2005 - 01/01/2006
  • 01/01/2006 - 02/01/2006
  • 02/01/2006 - 03/01/2006
  • 03/01/2006 - 04/01/2006
  • 04/01/2006 - 05/01/2006
  • 05/01/2006 - 06/01/2006
  • 06/01/2006 - 07/01/2006
  • 07/01/2006 - 08/01/2006
  • 08/01/2006 - 09/01/2006
  • 09/01/2006 - 10/01/2006
  • 10/01/2006 - 11/01/2006
  • 11/01/2006 - 12/01/2006
  • 12/01/2006 - 01/01/2007
  • 01/01/2007 - 02/01/2007
  • 02/01/2007 - 03/01/2007
  • 03/01/2007 - 04/01/2007
  • 04/01/2007 - 05/01/2007
  • 05/01/2007 - 06/01/2007
  • 06/01/2007 - 07/01/2007
  • 07/01/2007 - 08/01/2007
  • 08/01/2007 - 09/01/2007
  • 09/01/2007 - 10/01/2007
  • 10/01/2007 - 11/01/2007
  • 11/01/2007 - 12/01/2007
  • 12/01/2007 - 01/01/2008
  • 01/01/2008 - 02/01/2008
  • 02/01/2008 - 03/01/2008
  • 03/01/2008 - 04/01/2008
  • 04/01/2008 - 05/01/2008
  • 05/01/2008 - 06/01/2008
  • 06/01/2008 - 07/01/2008
  • 07/01/2008 - 08/01/2008

  • Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

    © 2001-2010 Robert Vahid Hashemian
    Support the effort
    Liked this page?
    Please consider creating a link to it
    from your Web site.

    hashemian.com
    هاشمیان.com

     Home

     Blog

     Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
    Usage

     News

     Articles

     FAQ

     About

     Contact

     Financial Markets Book
    Read Complete Book


    BOOK
    Tailoring your roast to the bean: in the pursuit of "deliciousness," craft roasting has become an art form. Part experience, part science and part experimentation, ... An article from: Tea & Coffee Trade Journal
    Phil Beattie
    $9.95

    BOOK
    New Tool-Less Process Forms Parts Automatically.(Brief Article)(Statistical Data Included): An article from: Plastics Technology
    $5.95

    BOOK
    Beneath the surface: Christian values often form a part of society's secularized holidays and rituals.: An article from: Presbyterian Record
    Kathy Cawsey
    $5.95

    BOOK
    Can odd-form automation increase returns? Still placing odd-form parts by hand? How to determine ROI of end-of-line automation.(Line Automation): An article from: Circuits Assembly
    Patty Chonis
    $5.95

    BOOK
    Children in the junkyard.(junkyards form part of kindergarten activity in Israel): An article from: Childhood Education
    Malka Haas
    $5.95

    |html-forms-part|

    more…




    TAX 2009
    Amazon Tax Central

    aStore - Hashemian.com on Amazon

    Visits: Powered by hashemian.com

     

     

     

     

     

    Search Hashemian.com





    VINTAGE PORCELIER VITREOUS CHINA 3 PART COFFEE POT
    $2.99
    Ends: Tue Mar 23, 2010 01:11:00 EST


    DO YOUR PART~Carved Ghana Art~African Mask NOVICA~NEW
    $49.95
    Ends: Tue Mar 23, 2010 01:19:15 EST


    SEIKO BULLHEAD CASE AND BAND,(PART'S)
    $23.00
    Ends: Tue Mar 23, 2010 01:21:32 EST


    CRKT Rollock Black Part Serrated Sliding Knife NEW L@@K
    $9.99
    Ends: Tue Mar 23, 2010 01:23:39 EST


    SBC CRANE 1.6 rocker arms part# 11755 1/2set 7/16 (used
    $22.50
    Ends: Tue Mar 23, 2010 01:28:42 EST

    more…