On Fri, 26 Apr 2002 16:15:52 +0200
F. Xavier Noria <[EMAIL PROTECTED]> wrote:

: I am writing some modules that receive a form, process it, and return a
: page that includes that very form. Is there a standard way to fill that
: returned form so the user sees the same data he sent there, as CGI.pm
: does?
: PS: I am using Apache modules + HTML::Template if that matters.

I summarize the approaches I've found:

   * Generating everything in the module as usual, maybe storing
     <select>s or things that complicated in template plain variables
     instead of putting them in the very template.

   * One can pass an object reference to a template as long as it has a
     method called "param" that behaves as CGI::param(). The idea is that
     <TMPL_VAR color> will be translated to $r->param('color').

   * HTML::FillInForm parses an already constructed HTML page and
     fills its forms out of the box invoking a param() method on a
     passed reference, as above. I think is what I'll choose.

I'd need to know now wheter Apache::Request's param() is OK here.

Thank you!

-- fxn

Reply via email to