Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Tables
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Anatomy of a FORM
 Developing HTML  FORMS
 Anatomy of a FORM
 Simple Form Layout
 
 Simple Form Layout
 The INPUT elements
 
   The INPUT elements
   The Button Value
   The Reset Value
   The Submit Value
   The Image Value
   The Checkbox Value
   The Radio Value
   The Hidden Value
   The Text Value
   The Password Value
   Other Attributes
 The INPUT Tags
 The BUTTON Element
 
 The BUTTON Element
 The SELECT and OPTION  Elements
 
 The SELECT and  OPTION Elements
 The TEXTAREA Element
 
 The TEXTAREA  Element
 The LABEL Element
 
 The LABEL Element
 The FIELDSET and  LEGEND Elements
 
 The FIELDSET and  LEGEND Elements
 Tab Navigation
 
 Tab Navigation
 Access Keys
 
 Access Keys
 Using Style Sheet
 Understanding URLs
 Using JavaScript
 Using Java

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Developing HTML Forms > Simple Form Layout

  Simple Form Layout

Creating a Form involves two independent steps: Creating the layout for the Form and writing a script program on the server side to process the information you get back from the Form. To create a Form, the Form tag is used. The opening tag includes two attributes: method and action. The method attribute can be either Get or Post, which determines how your Form data is sent to the script to process it.

Syntax:

<FORM METHOD= POST ACTION=http://www.mcp.com/cgi-bin/post-query>
.......
</FORM>
<FORM METHOD= GET ACTION=http://www.mcp.com/cgi-bin/get-query>
........
</FORM>

Note: POST method sends a data file with the name-value pairs to the server's standard input, together with the content type and the content length in bytes.
GET method appends the name-value pairs to the end of the URL. This information is then passed to the QUERY-string variable. The cgi script must then break down the QUERY_STRING environment variable to analyze the incoming data.

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-25795588, 91-22-25780444 Fax : 91-22-25793397
Email : ionline@vsnl.com
© Image Online 2001-2003