<> "Darren" == darren chamberlain <[EMAIL PROTECTED]> writes:
Darren> But using CGI's methods invoke CGI's self_or_default meethod, which
Darren> will either use the object passed in or create one internally ($Q)
Darren> and use that to perform its output. So, even though you are not
Darren> explicitly creating a CGI object, you are creating one implicitly,
Darren> which is what is grabbing the POSTed data, which is why the script
Darren> hangs right where you first try to use a CGI method.
Arrrrgh! You'r right this is THE reason !! the CGI->init method eat all the
POST data !! Is this documented anywhere ? Couldn't this be in the mod_perl
Guide or FAQ ?
Darren> If you need the HTML generation methods (it looks like this is all
Darren> you use CGI for), look into HTML::StickyForm for the forms, and
Darren> extend it with your own package for other HTML elements, or use a
Darren> templating system like HTML::Template or TemplateToolkit. I prefer to
Darren> use HTML::Template, or HTML::Mason when possible, for exactly this
Darren> reason. Another option, of course, is to use CGI in an object
Darren> oriented fashion, and preload it with -compile to have the entirety
Darren> of it reside in the parent process.
I liked the CGI functions to generate HTML ... it seems there is no simple
way to tell CGI module not to eat POST data. HTML::StickyForms could be an
option for forms ... the others (Template, Mason) are not for what I'm trying
to do. I'm just looking for a simple but complete html generator (instead of
hard coding all html tags in my code), does such a beast exists or have I to
write my own?
thanks a lot for you answers.
--
/ From the last station before the end of the neT \
\ Centre d'Etudes de la Navigation Aerienne, div SSS /
/ 7, av edouard Belin - 31055 Toulouse CEDEX - France \
\ Tel:(+33|0)5.62.25.95.22 | Fax:(+33|0)5.62.25.95.99 /