[Templates] url string w/ template toolkit

Mark Mills mark@xodiax.com
Wed, 1 Oct 2003 09:56:29 -0400


> -----Original Message-----
> From: Andy Wardley [mailto:abw@andywardley.com]
> A. Pagaltzis wrote:
> > when using the OO interface of CGI.pm in the main
> > script, processing a POST request, and trying to get the CGI
> > params via TT:P:CGI. The POST data would already have been
> > consumed and subsequently stored in an object not accessible
> > to TT:P:CGI by the time it comes into play.
>=20
> Yes, this is true regardless of how you use the CGI module, either
> through the OO or procedural interface.  The POST data is=20
> only available once, and once only.

I was avoiding chiming in earlier but I use Apache2 and thus don't
get to play with Apache::Template. I currently run about 20+ CGIs
with TT and CGI as part of a lightweight internal business portal.

Doing [% USE cgi %] in a header template for a URL bought me a long
day of confusion where half my CGIs worked and half didn't...=20
including one that worked intermittantly. Luckily I spotted that all
the GET style calls were working and that the POST ones were=20
complaining that they had no data.

So if you give advice based on your experience with A::T, be sure you
are talking to someone who is using it. :) (One of these days, I'm
going to get a lightweight A::T replacement for Apache2 working.)=20

Thanks for all the code and help, Andy!

--mark mills
Xodiax Engineering