in reply to Re: OT? Checkbox list with CGI/Javascript
in thread OT? Checkbox list with CGI/Javascript

This won't work, because we're generating the rows dynamically with the array @userids, and don't know how many we'll have.
  • Comment on Re^2: OT? Checkbox list with CGI/Javascript

Replies are listed 'Best First'.
Re^3: OT? Checkbox list with CGI/Javascript
by Tanktalus (Canon) on Nov 11, 2005 at 17:04 UTC

    And the problem is...? Given this is a perl site, I think the exhortation to generate text given your @userids is implicit.

    <tmpl_loop userids> <input type="checkbox" name="ids" value="<tmpl_var name>"> </tmpl_loop>
    and in perl
    my %tmpl_vars = ( userids => map { {name => $_} } @userids );
    assuming you're using HTML::Template. Modify as appropriate for your own templating system. You are using a templating system, right?