The following methods are supported by CGI.pm.
defaults |
print $query->defaults('label')
Generates a button that resets the form to its defaults. See also reset.
end_html |
print $query->end_html( )
Ends an HTML document.
filefield |
print $query->filefield('name' [,'default',size,maxlength ])
Generates a file upload field for Netscape browsers.
Using named parameters, the syntax is:
print $query->textfield(-name=>'name', -default=>'value', -size=>size, -maxlength=>maxlength, -override=>1, -onChange=>function, -onFocus=>function, -onBlur=>function, -onSelect=>function);
import_names |
$query->import_names('package')
Creates variables in the specified package. Called import in older versions of CGI.pm.
keywords |
@keyarray = $query->keywords( )
Retrieves keywords from an <ISINDEX> search.
ReadParse |
ReadParse( )
Creates a hash named %in containing query information. Used for backwards compatibility with the Perl4 cgi-lib.pl.
remote_host |
remote_host( )
Returns the remote hostname or IP address, depending on the configuration of the server.
reset |
print $query->reset
Generates a button that resets the form to its initial values. See also defaults.
save |
$query->save(filehandle)
Saves the form to the specified filehandle, to be read back with the new constructor.
self_url |
$url = $query->self_url
Returns the URL of the current script with all its state information intact.
start_multipart_form |
print $query->start_multipart_form([method, action])
Generates <HTML> and <BODY> tags. Same as startform, but assumes multipart/form-data encoding as the default.
Copyright © 2002 O'Reilly & Associates. All rights reserved.