Newbie
Frazer Irving
superfraz at clumsyjedi.com
Thu Jul 5 16:31:09 BST 2007
Also worth noting is that your script outputs the <checkbox> elements
outside of the <form> elements... which I think is what you were suggesting
in your original qustion. more of an HTML problem than a perl one. attached
is an updated copy of your script that rejiggifies those elements.
f
On 7/5/07, Simon Wistow <simon at thegestalt.org> wrote:
>
> On Thu, Jul 05, 2007 at 03:15:26PM +0100, Clooney, David said:
> >
> > I have tried printing all parameters in the subroutine that is called
> > when the submit(-name=>'Submit_selection') is defined however the only
> > parameter I get back is the actual "Submit_selection", presumably
> > because these are local to the subroutine ?
>
>
> What you need is something like
>
> my $cgi = CGI->new;
> my @selections = $cgi->param('host_tech_file_selection');
>
> I've written an example to show you how it works here
>
> http://thegestalt.org/simon/checkboxes/
>
> the script is included on the page.
>
> It uses a template rather than using CGI.pm's inbuilt html generation
> functions just because it makes the code cleaner so you can see the
> techniques used.
>
> Hope that helps,
>
> Simon
>
>
>
>
More information about the london.pm
mailing list