June 2002
Beginner
759 pages
80h 42m
English
startform
print $query->startform([method, action, encoding])
Generates a <FORM> tag.
methodThe request method for the form. Values are:
POSTUse the POST method (default).
GETUse the GET method.
actionThe URL of the CGI script. Default is the current URL.
encodingThe 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=>
nameNames the form for identification by JavaScript functions
-target=>
frameWrites to the specified frame
-onSubmit=>
functionA JavaScript function that the browser should execute upon submitting the form