Template::Plugin::CGI(3) User Contributed Perl Documentation Template::Plugin::CGI(3)NAME
Template::Plugin::CGI - Interface to the CGI module
SYNOPSIS
[% USE CGI %]
[% CGI.param('parameter') %]
[% USE things = CGI %]
[% things.param('name') %]
# see CGI docs for other methods provided by the CGI object
DESCRIPTION
This is a very simple Template Toolkit Plugin interface to the "CGI" module. A "CGI" object will be instantiated via the following
directive:
[% USE CGI %]
"CGI" methods may then be called as follows:
[% CGI.header %]
[% CGI.param('parameter') %]
An alias can be used to provide an alternate name by which the object should be identified.
[% USE mycgi = CGI %]
[% mycgi.start_form %]
[% mycgi.popup_menu({ Name => 'Color'
Values => [ 'Green' 'Black' 'Brown' ] }) %]
Parenthesised parameters to the "USE" directive will be passed to the plugin constructor:
[% USE cgiprm = CGI('uid=abw&name=Andy+Wardley') %]
[% cgiprm.param('uid') %]
METHODS
In addition to all the methods supported by the "CGI" module, this plugin defines the following.
params()
This method returns a reference to a hash of all the "CGI" parameters. Any parameters that have multiple values will be returned as lists.
[% USE CGI('user=abw&item=foo&item=bar') %]
[% CGI.params.user %] # abw
[% CGI.params.item.join(', ') %] # foo, bar
AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/>
COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template::Plugin, CGI
perl v5.12.1 2008-11-13 Template::Plugin::CGI(3)
Check Out this Related Man Page
Query(3pm) User Contributed Perl Documentation Query(3pm)NAME
CGI::Application::Plugin::DevPopup::Query - show CGI query in DevPopup window
SYNOPSIS
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::DevPopup::Query;
The rest of your application follows
...
DESCRIPTION
This module is a plugin for CGI::Application::Plugin::DevPopup. Whenever used, it creates two sections in the DevPopup output. First
section, "Current Run Mode", shows name of run mode executed. Second section, "CGI Query", contains a list of CGI query parameters and
associated values passed to your CGI::Application.
See "query()" in CGI::Application and CGI.pm for more information about query parameters.
VERSION
1.03
SUBROUTINES /METHODS
No public methods for this module exist.
DEPENDENCIES
CGI::Application::Plugin::DevPopup
CONFIGURATION AND ENVIRONMENT
N/A
DIAGNOSTICS
N/A
SEE ALSO
CGI::Application::Plugin::DevPopup, CGI::Application
INCOMPATIBILITIES
Not known.
BUGS AND LIMITATIONS
Not known.
AUTHOR
Serguei Trouchelle, <mailto:stro@cpan.org>
Most of code is based by CGI::Application::Plugin::DevPopup by Rhesa Rozendaal, <mailto:rhesa@cpan.org>
LICENSE AND COPYRIGHT
This module is distributed under the same terms as Perl itself.
Copyright (c) 2009-2011 Serguei Trouchelle
perl v5.12.4 2011-11-01 Query(3pm)
Scott Wiersdorf (www.perlcode.org) wrote a Perl module to interface with procmailrc files. The name of the module is Mail::Procmailrc (available from CPAN). It comes with a simple CGI (unpolished, insecure, but useful as a proof-of-concept) to allow you to edit procmailrc files from a web... (0 Replies)
Hi,
I have the following simple CGI script, just containg header:
#!/usr/bin/perl -w
use CGI ':standard';
use lib "/home/myname/lib/perl5/site_perl/5.8.5/";
use Mail::Sendmail;
I also have included this directive in ~/public_html/.htaccess :
SetEnv PERL5LIB... (0 Replies)
I need to create a webserver to run Perl CGI Scripts. Anyone have any ideas or good links?
Yes I know there are lovely programs out there, but I need to build one in C.
Thanks! (1 Reply)
Hello All,
I am calling a script 'abc.pl' in my action section while creating a form. This will automatically pass parameters that are collected in the form. But I want to pass other parameters which are actually just variables in the script I am calling 'abc.pl' from. How do I make sure these... (4 Replies)
Hi,
I was writing a simple web application using Perl -CGI. When users try to do some operations, I wanted like a pop-up confirmation box. Is this possible with Perl-CGI?
Thanks in advance.
Regards,
garric (6 Replies)
Hi,
I am trying to create a web interface with Perl CGI with 2 pages. The content of these pages is dependent on the user accessing it. Thus, I need some kind of authentication to identify WHO is logging in but I DO NOT WANT to be restricting the pages to a few.
What is the best way to prompt... (8 Replies)
Hi,
I'm writing a CGI script in Perl using the CGI module (CGI - perldoc.perl.org), and I can't find the exact syntax to add a reference to my favicon .ico file in the <head>. Any insights?
Thanks. (4 Replies)
Hello,
I am about 3 weeks new to CGI/ Perl scripting and so far some concepts I can wrap my head around perfectly but others not so much.
I was wondering if I could get some help in making a script that will pull from a text file and put back into a form. I can make a script that takes input... (15 Replies)
Hi. I could use some help with my problem. I am creating a website. One option on this website is to delete a specified file, say an image, when the user clicks on it. I want to do this with CGI. I believe bash will be the easiest since I will just type the command "rm file". I also do not know... (4 Replies)
i am new to Perl CGI Object oriented.
I want to use some java script in my Perl CGI but i am not able to do that.
I am using Submit button then via param() i am getting all field parameters.
But i want to validate all fields first then i want to move. But Use of Java script, i don't know (1 Reply)
Hello,
I am new to Linux and have a general question.
In linux and unix you can have CGI scripts. I am aware of CGI as Computer Generated Images in graphics and Common Gateway Interface, but what are CGI scripts in relation to Linux or Unix?
Are CGI's in Linux and Unix relevant to only... (1 Reply)
Hi,
Am unfamiliar with using CGI modules in Perl.
Though i checked in few sites about CGI , i dint get a clear idea.
Can anyone please explain me the purpose of these statements, it ll be very helpful to me
#!/usr/bin/perl
use CGI qw/:standard/;
use Storable;
use Data::Dumper;
my... (1 Reply)
Hi,
Can any one tell me that whether CGI based web application is good for handling high traffic applications or reporting tool or ERP application?
I'm specific with C with Mysql.
Any resource or a little advantages of CGI for such application are welcome.
Thanks (3 Replies)
Does anyone know how to generate CGI charts which are not images , the one I am using generates image files
e.g
$mygraph3->set( 'x_labels_vertical' => 1 );
$mygraph3->set_legend_font(GD::gdMediumBoldFont);
$mygraph3->set_legend('Test Plot');
my $myimage3 = $mygraph3->plot(\@data3)->png;... (4 Replies)