in reply to How to take values from check box in CGI form?

I'm not sure I understand the question (given monarch's response). Does it help if I say that param() returns multiple values in list context? That is:

my $message_id  = $q->param( 'address' );

gives you only one message id, while:

my @message_ids = $q->param( 'address' );

gives you all of the checked values.

Replies are listed 'Best First'.
Re^2: How to take values from check box in CGI form?
by monarch (Priest) on Jun 16, 2005 at 06:23 UTC
    I'm curious, because my guess was that the problem was that browsers don't send parameters for unchecked boxes. And the thread author wanted to delete based on which boxes were unchecked.

    Was this the problem, gube?

    Update: changed capitalisation of the name gube.

      A quick Google search reveals that you're right.

      If an element is selected, its value is returned; otherwise it is not.

      Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.