RE: CGI and variables? Whatīs the problemQ?=

From: Brian Barto (brian.barto_at_spectrum-health.org)
Date: 12/29/04


To: beginners@perl.org
Date: Wed, 29 Dec 2004 14:23:25 -0500

Should be as simple as:

use CGI;
$co = new CGI;

## Here I grab the info from the form field named "date"
## and assign it to the variable $data

my $data = $co->param('date');

-----Original Message-----
From: diogo.senai@sistemafieg.org.br
[mailto:diogo.senai@sistemafieg.org.br]
Sent: Wednesday, December 29, 2004 2:14 PM
To: beginners@perl.org
Subject: CGI and variables? Whatīs the problem?

Hi guys... Iīd like to ask you a question. Some of you might have
encountered something like this... Iīm creating a web interface using CGI
library so that the user enter a data in the textfield, i put these values
into some variables and use them in the system... for example... I type
the new date and the script executes the date command with that value
typed in the textfield... but I just canīt get it done... If I give fixed
value to the variable, it works fine... but in the same script of the CGI,
it doesnīt...
Please, help me!

Thanks!

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Relevant Pages

  • Re: <FORM> Submit question with perl cgi scripts
    ... I like your rat idea better. ... > my original index page? ... Yeah - there's really no way around that with CGI. ... When you use the textfield() method above, it looks for an input named ...
    (comp.lang.perl.misc)
  • using buttons in CGI
    ... I have table such that each line on it is textfield ... thankfull. ... any helpfull data about the using of buttons in CGI will be great ...
    (comp.lang.ruby)
  • CGI and variablesQ_What=B4s_the_problem=3F?=
    ... Iīm creating a web interface using CGI ... library so that the user enter a data in the textfield, ... the new date and the script executes the date command with that value ...
    (perl.beginners)
  • RE: help with perl/cgi creating a html code with pull down menu
    ... I have created a perl cgi script to grab two string ... Looks like you need to read more about CGI and HTML forms. ...
    (perl.beginners)