Name
startform
Synopsis
print
$query
->startform([method
,
action
,
encoding])
Description
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-urlencodedandmultipart/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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access