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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 2:14 PM
To: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>