CGI_Lite
view release on metacpan or search on metacpan
CGI_Lite.pm view on Meta::CPAN
$new_string = $cgi->wrap_textarea ($string, $length);
@all_values = $cgi->get_multiple_values ($reference);
$cgi->create_variables (\%form);
$cgi->create_variables ($form);
$escaped_string = browser_escape ($string);
$encoded_string = url_encode ($string);
$decoded_string = url_decode ($string);
$status = is_dangerous ($string);
$safe_string = escape_dangerous_chars ($string);
=head1 DESCRIPTION
You can use this module to decode form and query information,
including file uploads, as well as cookies in a very simple
manner; you need not concern yourself with the actual details
behind the decoding process.
CGI_Lite.pm view on Meta::CPAN
Here are the methods you can use to process your forms and cookies:
=over 4
=item B<parse_form_data>
This will handle the following types of requests: GET, HEAD and POST.
By default, CGI_Lite uses the environment variable REQUEST_METHOD to
determine the manner in which the query/form information should be
decoded. However, as of v1.8, you are allowed to pass a valid request
method to this function to force CGI_Lite to decode the information in
a specific manner.
For multipart/form-data, uploaded files are stored in the user selected
directory (see B<set_directory>). If timestamp mode is on (see
B<add_timestamp>), the files are named in the following format:
timestamp__filename
where the filename is specified in the "Content-disposition" header.
CGI_Lite.pm view on Meta::CPAN
I<Return Value>
URL encoded string.
=item B<url_decode>
You can use this method to URL decode a string.
I<Return Value>
URL decoded string.
=item B<is_dangerous>
This method checks for the existence of dangerous meta-characters.
I<Return Value>
0 Safe
1 Dangerous
( run in 0.275 second using v1.01-cache-2.11-cpan-26ccb49234f )