> print CGI::header();
> print "hello\n";
> print "foo\n";
> print "bar\n";
> foreach my $line () {
> my $result = &do_something($line);
> }
> use LWP::Simple;
> my $credit_card_server = "secure.mybank.com";
> my $username = "my_secret_username";
> my $password = "my_pass
Saturday, March 16, 2002, 9:58:15 AM, Gary Hawkins wrote:
> Web form element names automatically become script variable names and are
> assigned their values...
> use CGI 'param';
> for $name (param()) {
> $$name = param($name);
> }
> The double $$ is not a typo. Your question resulti
Saturday, March 16, 2002, 12:42:40 AM, Tiller, Jason wrote:
> my %params;
> $params{$_} = param($_) foreach param();
> If I understand your code correctly, param() returns a list of all the
> possible keys, right? If so, then the above code should work. You refer to
> the parameters as $param{
sz [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 3:23 PM
> To: perl
> Subject: param function
>
>
> hi,
> I have a html form with over 100 fields, is there a quick way to
> assign them in the way that the scalar name becomes the name of the
> field and the valu
rs as $param{name} instead of just $name.
I hope that helps, :)
---Jason
> -Original Message-
> From: Mariusz [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 3:23 PM
> To: perl
> Subject: param function
>
> hi,
> I have a html form with over 100 fi
form( e.g. @R::name ). Otherwise, you should use the
scalar form (e.g. $R::name). If no namespace is given, the function will
use 'Q'.
Good luck!
Tanton
- Original Message -
From: "Mariusz" <[EMAIL PROTECTED]>
To: "perl" <[EMAIL PROTECTED]>
Sent: Friday,
hi,
I have a html form with over 100 fields, is there a quick way to assign them in the
way that the scalar name becomes the name of the field and the value of the field is
being assigned to that scalar? I know I can just type it one by one:
$name = param('name');
$lastname = param('lastname');