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.
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.
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