start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: start_multipart_form Chapter 10
The CGI.pm Module
Next: Reference: textarea
 

submit

 
print
 
$query

->submit([
 '
label
','
value
' 
])

Generates a submit button.

label

The label to use for the button.

value

The value to return when the form is submitted.

Using named parameters, the syntax is:

print $query->submit(-name=>'
name
',                      -value=>'
value
',                      -onClick=>
function
);
-onClick=> function

Browser should execute function when the user clicks on the submit button.


Previous: Reference: start_multipart_form Perl in a Nutshell Next: Reference: textarea
Reference: start_multipart_form Book Index Reference: textarea

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.