资 源 简 介
What is Q-Validate?
For some time now, I"ve been very unsatisfied with the state of validation libraries in PHP. For the most part, you can"t really even find a simple validation library. The few decent ones I have found have been coupled to a form library such as "HTML\_QuickForm" or "Zend\_Form". In my opinion, forms are much too complex and important to depend on a form generator. My forms don"t tend to follow a repetitive enough structure to allow the use of any of these options. Zend_Form is a bit different in that it allows you to add "decorators" that can render its elements exactly how you want them, but what I don"t understand about this approach is that it"s more complicated than simply writing the HTML yourself.
Furthermore, forms aren"t the only data that ever needs to get validated. What if I simply w