startform

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 14.  The CGI.pm Module


startform

 print $query->startform([  method  ,  action  ,  encoding  ]) 

Generates a <FORM> tag.

method

The request method for the form. Values are:

POST

Use the POST method (default).

GET

Use the GET method.

action

The URL of the CGI script. Default is the current URL.

encoding

The encoding scheme. Possible values are application/x-www-form-urlencoded and multipart/form-data.

Using named parameters, the syntax is:

 print $query->startform(-method=>  $method  ,                         -action=>  $action  ,                         -encoding=>  $encoding  ,                         -name=>  $name  ,                         -target=>  frame  ,                         -onSubmit=>  function  ); 
-name=> name

Names the form for identification by JavaScript functions.

-target=> frame

Writes to the specified frame.

-onSubmit=> function

A JavaScript function that the browser should execute upon submitting the form.


Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net