CGI-FormMagick
view release on metacpan or search on metacpan
Added validation routine(s):
Network mac_address()
Improved taint-friendliness.
0.50
----
Various code cleanups.
Added experimental file upload support.
Changed email() validation routine to email_simple()
OO interface to previousbutton() and friends
More taint-friendly
Starting to deprecate Locale::Maketext in favour of XML-based lexicons
0.49
t/lexicon-params.xml
examples/README
examples/foot.tmpl
examples/head.tmpl
examples/session-tokens
examples/hello.pl
examples/hello.xml
examples/hello-repeat.pl
examples/hello-repeat.xml
examples/fileupload.pl
examples/group-default.pl
examples/group-default.xml
examples/validations.pl
examples/pre.pl
examples/pre.xml
examples/checkbox.pl
examples/checkbox.xml
examples/fragments.pl
examples/fragments.xml
examples/lexicon.pl
examples/README view on Meta::CPAN
hello.pl, hello.xml, head.tmpl, foot.tmpl
The simplest configuration.
hello-repeat.pl, hello-repeat.xml, head.tmpl, foot.tmpl
Same, but with two <PAGE>'s.
validations.pl, head.tmpl, foot.tmpl
Examples of all of FormMagick's validation routines.
fileupload.pl
Example of how to, well, upload a file. (Debugging is on by default)
e-smith/*
A real-world example. (Debugging is on by default)
examples/fileupload.pl view on Meta::CPAN
# Copyright (c) 2000-2002 Mitel Networks Corporation
# This software is distributed under the same licenses as Perl itself;
# see the file COPYING for details.
use strict;
use lib "../lib/";
use CGI::FormMagick;
use Carp;
#
# Example of a file upload form. Note that you *must* include the
# <ENCTYPE>multipart/form-data</ENCTYPE> field in order to use
# fields of type FILE.
#
#
# suck in the XML from down below __DATA__
#
undef $/;
my $data = <DATA>;
examples/fileupload.pl view on Meta::CPAN
{
print "This is the dump_file routine.\n\n";
my $file = CGI::param('filename');
my $buf;
read($file, $buf, 1024);
print "The first 1024 bytes are:\n<pre>",$buf,"\n</pre>\n";
}
__END__
<FORM HEADER="" FOOTER="">
<TITLE>File upload test</TITLE>
<PAGE NAME="Upload" POST-EVENT="dump_file">
<TITLE>Upload a file to the server</TITLE>
<FIELD ID="filename" TYPE="FILE" VALIDATION="nonblank">
<LABEL>Choose a file to send</LABEL>
</FIELD>
</PAGE>
</FORM>
lib/CGI/FormMagick.pm view on Meta::CPAN
checked attribute is optional, but if set to 1 will make the checkbox
checked by default.
=item password
The password field type is like a text field, but obscures the data
typed in by the user.
=item file
This field type allows the upload of a file by the user.
=item textarea
A multi-line text field allowing the input of blocks of text. Defaults
to 5 rows and 60 columns, but you can specify "rows" and "cols" arguments
to change that.
=item literal
A field that is just printed literally. Useful if you want to just print out a
( run in 1.741 second using v1.01-cache-2.11-cpan-b16cb0d3907 )