[Templates] problem with CGI

[prev] [thread] [next] [Date index for 2004/08/01]

From: erob
Subject: [Templates] problem with CGI
Date: 13:20 on 01 Aug 2004
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

Re: [Templates] problem with CGI
Dan Thomas 14:10 on 01 Aug 2004

Re: [Templates] problem with CGI
erob 15:36 on 01 Aug 2004

Re: [Templates] problem with CGI
erob 14:29 on 06 Aug 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52