For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2004 > RE: CGI and variables? What´s the problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: CGI and variables? What´s the problem
Brian Barto

2004-12-29, 8:55 pm

Should be as simple as:

use CGI;
$co =3D new CGI;

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

my $data =3D $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=B4s the problem?


Hi guys... I=B4d like to ask you a question. Some of you might have
encountered something like this... I=B4m 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=B4t get it done... If I give =
fixed
value to the variable, it works fine... but in the same script of the =
CGI,
it doesn=B4t...
Please, help me!

Thanks!


--=20
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>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com