From:   "Michael Eggleton" <[EMAIL PROTECTED]>

> use Getopt::Long;
> 
> GetOptions( "option1=s" => \$option1value );
> 
> parameters are passed to the script like this
> 
> myscript --option1=option1value     or
> myscript --option1 option1value

He said the script is called by an HTML form. This would be tru if 
someone run the script on the cmd prompt/shell.

> -----Original Message-----
> From: "Rahul Garg" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Tue, 5 Feb 2002 18:18:45 +0530
> Subject: parameter passing
> 
> > Well,I have a HTML form which is calling a perl script.In form there
> > is a multiple selector box ,now when 2-3 lines are selected each is
> > passwd with adifferent name value pair. How to capture all values
> > bya parameter name Thanks, Rahul

Depends on what you are using to parse the query. The best way 
is to use CGI.pm.

        use CGI;
        $q = new CGI;
        @lines = $q->param('fieldName');

or (shameless plug) CGI::Deurl

        use CGI::Deurl as => 'q';
        @lines = @{$q{fieldName}};

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to