:)
The question is, how to filter all fields on the $_POST ? I have this filter
chain:
// Load Zend_Filter lib.
$objFilter = new Zend_Filter();
// Add filter chain.
$objFilter->addFilter( new Zend_Filter_StringTrim() );
$objFilter->addFilter( new Zend_Filter_StripTags() );
So I need to filter all the elements of the $_POST using this chain, how to do
it ? is there a way to filter all elements ? or I need to loop it and the try
to filter each one ?
Thx for any help.
POST:
Array
(
[1001035] => Array
(
[dir] => Array
(
[radio] => Take 1 a day
[other] =>
)
[qty] => Array
(
[radio] => #180
[other] =>
)
[str] => Array
(
[radio] => 10mg
[other] =>
)
[xref] => Array
(
[radio] => 12 months
[other] =>
)
[daw] => 1
[comments] => my comments!
)
)