At 03:45 PM 10/16/01 -0700, Paul B. Giese wrote:
>Hiya,
>
>I'm pretty new to Perl and am using HTML::Tmpl for
>this site.  My question is if anyone knows of any good
>doumentation on how to use HTML::FillinForm
>w/HTML::Tmpl?

I'm not sure what you are asking.  The best docs are perldoc
HTML::FillInForm, of course.  But, it's this simple:

    my $page = $template->output;
    
    print $fif->fill(
        scalarref => \$page,
        fobject   => $q,
    );

Where $q is an object that has a param() method for looking up values.
Commonly it's a CGI object, but it can be anything you like.


>Further, has anyone ever used FillinForm to populate a
>form where the values are pulled from a DB(mysql) and
>not a previous form?  is that possible?

Sure, just make $q->param() fetch the data from the database -- or from
some data structure like a hash that was populated from the database.

Is that what you were asking?




Bill Moseley
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to