Cees,
Thanks for correcting my misconceptions. That did, indeed, fix the issue.
Sean
On 6/24/04 6:06 PM, "Cees Hek" <suppressed> wrote:
> Sean Davis wrote:
>>
>> HTML::Template : Attempt to set nonexistent parameter '<input
>> type="checkbox" name="
>> fetchwhat" value="blat hits" />blat hits' - this parameter name doesn't
>> match any de
>> clarations in the template file : (die_on_bad_params => 1) at
>> /Library/WebServer/CGI
>> -Executables/OligoMap.pm line 81
>
> Somewhere in your code you are passing some values to the template
> module incorrectly. HTML::Template thinks you are trying to set a
> template parameter called '<input type="checkbox" name...', which you
> probably mean to be a value, not a parameter name.
>
>> $template->param('fetchwhat' => $q->checkbox_group(
>> -name=>'fetchwhat',
>> -values=>['Database Cross-references',
>> 'Blat Hits',
>> 'Ensembl Mapping Information',],
>> -defaults=>['Database Cross-references'],
>> -linebreak=>0));
>
> And here is the culprit. From the CGI.pm docs:
>
> The value returned by checkbox_group() is actually
> an array of button elements.
>
> So you are sending the following to the template:
>
> $template->param('fetchwhat' => checkbox1, checkbox2, checkbox3);
>
> Which means that checkbox2 is going to be a variable name, and checkbox3
> its value. what you need to do is join them together into one value.
>
> $template->param('fetchwhat' => join('', $q->checkbox_group(
> -name=>'fetchwhat',
> -values=>['Database Cross-references',
> 'Blat Hits',
> 'Ensembl Mapping Information',],
> -defaults=>['Database Cross-references'],
> -linebreak=>0)));
>
>
> Hope that helps...
>
> Cheers,
>
> Cees
>
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.