[html-formfu] Problem with form generation/rendering

Carl Franks fireartist at gmail.com
Thu Oct 4 17:15:50 GMT 2007


On 04/10/2007, Will Hawes <wdhawes at gmail.com> wrote:
> I'm using the 0.1005 release from CPAN.
>
> This script:
>
> #!/usr/bin/perl -w
> use strict;
> use HTML::FormFu;
> my $form = HTML::FormFu->new;
> $form->element( 'Text', { name => 'test' } );

That should be either:
    $form->element('Text')->name('test');
or:
    $form->element({ type => 'Text', name => 'text' });

I'm not sure if I want to investigate why the heck you got such a
strange output though...

Carl



More information about the HTML-FormFu mailing list