in reply to HTML::Template Data::FormValidator Help ?
___ In Class ___<tr> <td align="right" valign="baseline">Last Name :</td> <td align="left"><input type="text" name="last_name" value = "<t +mpl_var name=last_name>"> <tmpl_if err_last_name><br><font color="#FF0000"><strong>Please +input your last name</strong></font></tmpl_if> </td> </tr>
But the problem is that this doesnt work. It always prints out that one field is mising. And there are other (wich you can see from the profile) ... ?use Data::FormValidator; my $Profile = { required => [qw(first_name last_name sex city)] }; my $results = Data::FormValidator->check($Form,$Profile); if($results->has_invalid or $results->has_missing){ my $output; foreach my $f ( $results->missing ) { $output = $f. " is missing\n<br>"; }
Update Added <code> tags. larsen
|
|---|