in reply to Retrieving "msgs" values from Data::FormValidator
This appears to be the default outpur from D::FV. ... it seems the problem I'm having is not knowing how to call the elements from the hash above.$VAR1 = { 'three' => '<span style="color:red;font-weight:bold"><span i +d="dfv_errors">* Missing</span></span>', 'two' => '<span style="color:red;font-weight:bold"><span id= +"dfv_errors">* Missing</span></span>' };
It appears that the keys of the hash are the field names of the required fields that were submitted as blanks from the form.
And it also appears that I should be able to call the items from the above hash and associate them to the $results->(missing) array .... that is if I knew how to call the hash value ...
It looks to these rookie eyes that Data::Dumper shows the hash name as "$VAR1" ... and I'm guessing that in order for me to call the hash values, I need to know the hash name ???
I've been trying all kinds of combinations:
but I still keep getting a damn hash reference, and no data. Frustrating, to say the least ;)print $results->msgs(); print $results->msgs(you name it); print $results->msgs(I've tried it);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Retrieving "msgs" values from Data::FormValidator
by cees (Curate) on Dec 21, 2003 at 00:29 UTC | |
by Hagbone (Monk) on Dec 21, 2003 at 20:14 UTC |