[geeklog-devtalk] Re: geeklog-devtalk digest, Vol 1 #258 - 3 msgs

Wim Niemans ri remy at pbsolo.nl
Sun Feb 29 08:13:22 EST 2004


On 28 Feb 2004 at 12:00, geeklog-devtalk-request at lists.geeklog.net wrote:


> Dirk wrote:

> > array_walk sounds useful, but I'm not sure how you would derive a common

> > function from it. How would it know which parameters are supposed to be

> > numeric?

>


Being numeric or alphabetic sounds like validation. To my opnion it
is not filtering. Maybe there's a need to
COM_applyValidation(var,type,options) or similar ?

So one codes f.i. $uid =
COM_applyValidation(COM_applyFilter($HTTP_POST_VARS['uid']),'numeric')

which turns '123wim5' into '1235' or 'false'.

cheers,
wim niemans





More information about the geeklog-devtalk mailing list