Take a look at Zend_Filter_Input (http://framework.zend.com/manual/en/zend.filter.input.html): /"Zend_Filter_Input provides a declarative interface to associate multiple filters and validators, apply them to collections of data, and to retrieve input values after they have been processed by the filters and validators."/

Kexiao Liao wrote:
We would like to run a validation against 6 POST variables($_POST['var1'],
_POST['var2'],_POST['var3'],_POST['var4'],_POST['var5'],_POST['var6']), to
see if any one of them has been changed against the value stored in a
database table ($myTableRow->var1,$myTableRow->var2,
$myTableRow->var3,$myTableRow->var4,$myTableRow->var5, $myTableRow->var6). If anyone of them has been changed, the the validation is true, otherwise
the validation is false. How do we use Zend_Validate to implement it?

--
Jack

Reply via email to