I think I've covered all the relevant docs, but am having no luck getting
multiple values out of a PerForm form.

I've tried both methods mentioned in the eagle book for Apache::Table
objects:

 my @values = $ctxt->{Form}->get('param_name');

 while (my($k,$v) = each %{$ctxt->{Form}}) {
        next unless $k eq 'param_name';
        # do something with $v
 }

In each case, I just get the last of the values that was selected.  The
values are coming from checkboxes, generated by the given code:

  foreach (@things) {
        <f:checkbox name="param_name">
          <f:value>
            <xsp:expr>$_->get_name;</xsp:expr>
          </f:value>
        </f:checkbox>;
        <xsp:content>
          <xsp:expr>$_->get_name</xsp:expr> <br/>
        </xsp:content>
        }

Off-topic question: I shouldn't need to have those semicolons, should I?
Axkit's generated perl code sometimes ends up with do {} blocks that
don't close with semicolons, preventing compilation.

back on-topic: I would be grateful if anyone could point out where I've
gone wrong in the above, or what other approach I should be taking.

- Joe

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

Reply via email to