[html-formfu] Using HTML::FormFU validation elsewhere

onken at houseofdesign.de onken at houseofdesign.de
Fri Feb 6 11:58:59 GMT 2009


Hi,

you can use $form->process directly. Just put you data in a Hashref and
pass it to it.

$form->process({field1 => "Value1", field2 => "Value2"});
if($form->submitted_and_valid) {

} else {

}


cheers,

moritz

On Fri, 6 Feb 2009 11:54:00 +0000, Dermot <paikkos at googlemail.com> wrote:
> Hi,
> 
> In a Catalyst env, I have a `script/import.pl`. This imports data from
> CSV files. The data is of the same format/structure as if it where
> being added via a Form and validated by FormFu. I am using
> Data::Domain at the moment to validate the entries but it would be
> tidier if I could somehow harness the formFu config files and use
> those. Would that be possible? Any pointers as to how?
> 
> Thanx,
> Dp.
> 
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu



More information about the HTML-FormFu mailing list