Here's a question I have for anyone that might be able to help me:
I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Hi,
I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input.
I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text... (2 Replies)
hello.
i hav accepted name of directory from user through a form.now i need to create a directory under cgi-bin of that name.I am not able to do so.n help is required (12 Replies)
Hi Everyone,
I am facing a problem, regarding cgi cannot receive the value from HTML after click submit. Here is the code
===============================================
#!/bin/bash
genHTML()
{
cat <<-__EOF__
Content-type: text/html
<html>
<script language="JavaScript">
<!--
... (2 Replies)
Hi
I have a bash script which takes parameters
sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC
gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash
I have... (0 Replies)
Hi, I want to insert in a page a .html button that - once it is clicked - opens a save file dialog box by using perl CGI .
I know that to create a link to do that I've done :
print $cgi->p ( { -class => 'linc' },);I want to do something similar for a download button (0 Replies)
Hi I have some simple script within the context of a cgi script that create a file to write to. If I run the script from the command line as root the file is created with no issue. However when I run the script from a web page with the apache account, it dies. The code lines are:
sub... (3 Replies)
hi folks,
I am trying to download xlsx from cgi page in browser but not sure where I made a mistake.
the cgi script contains the code for creating xlsx and just by clicking on the image I should be able to
#!/usr/bin/perl -w
use Excel::Writer::XLSX;
use DBI;
use DBD::mysql;
use CGI;... (1 Reply)
I want to create a simple html page that should contain 2 fields in which the user can write the input. Then I want to have a button that should launch a shell script with the parameters inserted by user in the fields from the webpage.
This is the code behind my webpage:
<html>
<form... (2 Replies)
Hello all,
I found acontribution of apmcd47 in an article I read very interesting, here is the link:
The post is named:
I don't understand almost anything about shell scripting, but I'm still determined to learn.
I have a question that I have not been able to solve (so many hours at... (9 Replies)
Discussion started by: Haxo
9 Replies
LEARN ABOUT DEBIAN
appconfig::cgi
AppConfig::CGI(3pm) User Contributed Perl Documentation AppConfig::CGI(3pm)NAME
AppConfig::CGI - Perl5 module for processing CGI script parameters.
SYNOPSIS
use AppConfig::CGI;
my $state = AppConfig::State->new(\%cfg);
my $cgi = AppConfig::CGI->new($state);
$cgi->parse($cgi_query);
$cgi->parse(); # looks for CGI query in environment
OVERVIEW
AppConfig::CGI is a Perl5 module which implements a CGI interface to AppConfig. It examines the QUERY_STRING environment variable, or a
string passed explicitly by parameter, which represents the additional parameters passed to a CGI query. This is then used to update
variable values in an AppConfig::State object accordingly.
AppConfig::CGI is distributed as part of the AppConfig bundle.
DESCRIPTION
USING THE AppConfig::CGI MODULE
To import and use the AppConfig::CGI module the following line should appear in your Perl script:
use AppConfig::CGI;
AppConfig::CGI is used automatically if you use the AppConfig module and create an AppConfig::CGI object through the cgi() method.
AppConfig::CGI is implemented using object-oriented methods. A new AppConfig::CGI object is created and initialised using the new()
method. This returns a reference to a new AppConfig::CGI object. A reference to an AppConfig::State object should be passed in as the
first parameter:
my $state = AppConfig::State->new();
my $cgi = AppConfig::CGI->new($state);
This will create and return a reference to a new AppConfig::CGI object.
PARSING CGI QUERIES
The "parse()" method is used to parse a CGI query which can be specified explicitly, or is automatically extracted from the "QUERY_STRING"
CGI environment variable. This currently limits the module to only supporting the GET method.
See AppConfig for information about using the AppConfig::CGI module via the cgi() method.
AUTHOR
Andy Wardley, "<abw@wardley.org<gt">
COPYRIGHT
Copyright (C) 1997-2007 Andy Wardley. All Rights Reserved.
Copyright (C) 1997,1998 Canon Research Centre Europe Ltd.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
AppConfig, AppConfig::State
perl v5.12.4 2007-05-30 AppConfig::CGI(3pm)