Re: catching multiple values

2006-04-18 Thread David Dorward
>   
> and I need to catch all the values of this list but, if I write:
>   $legenda = $pagina->param("legenda");
> the variable $legenda is equal only to the first selected item.
> I read the cgi perldoc, but I cannot locate the answer to may question.

   FETCHING THE VALUE OR VALUES OF A SINGLE NAMED PARAMETER:


   @values = $query->param('foo');

 -or-

   $value = $query->param('foo');

   Pass the param() method a single argument to fetch the value of
   the named parameter. If the parameter is multivalued (e.g. from
   multiple selections in a scrolling list), you can ask to
   receive an array.  Otherwise the method will return a single
   value.


-- 
David Dorward  http://dorward.me.uk


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




catching multiple values

2006-04-18 Thread Adriano Allora

Hi to all,
I have a page with an option list:

and I need to catch all the values of this list but, if I write:
$legenda = $pagina->param("legenda");
the variable $legenda is equal only to the first selected item.
I read the cgi perldoc, but I cannot locate the answer to may question.

Someone can help me?

Thank you,

alladr


|^|_|^|_|^|  |^|_|^|_|^|
 || ||
 || ||
 ||*\_/*\_/*\_/*\_/*\_/* ||
 |   |
 |   |
 |   |
 | http://www.e-allora.net|
 |   |
 |   |
**


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