[Templates] problem with CGI
[prev]
[thread]
[next]
[Date index for 2004/08/01]
Hello everyone,
I got a simple question to ask to the TT gurus :)
If writing something like:
[% cgi = CGI %] # using Template::Plugin::CGI
or alternatively,
[% cgi %] # my $vars = { cgi = CGI->new() };
some code...
[% cgi.endform %] # yield 'ARRAY(0xDEADB33F)' ?!
I don't know why the endform method outputs something
like that, so if someone knows the answer please tell us :)
As a work-around, remove the endform thingie and everything
runs fine again; assuming that there's only one form visible
to the user, since the first one will clutter the next forms inputs.
Best regards,
Etienne
p.s -- it seem's like it's only occuring under TT directives,
but I cannot explain why just yet..
However, it does work as expected if using some perl interpreter:
[% PERL %]
use CGI;
my $cgi = CGI->new();
print $cgi->startform, $cgi->textfield, $cgi->endform;
[% END %]
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] problem with CGI
erob 13:20 on 01 Aug 2004
|