whew, alrighty ...
For the record, I ended up doing the data validation in it's own class.
I build a controller class to assist in checking the user submitted data. Once the data had been verified clean, I sent it to the proper class to handle it. I believe this is the best way. Validating the data inside the class that was handling it was a stupid and messy idea I think.
Dan:
phpfreaks has some nice noob tutorials on OOP and classes:
http://www.phpfreaks.com/tutorial_ca...rogramming.php
If you are learning about oop and classes for the first time, I would recommend making sure you are well rested, and your brain is clear before you attempt to read any articles or tutorials  It can be overwhelming for a beginner.
It is so true. Once you start, you will wonder how you ever did anything without using OOP techniques. Whatever you do, don't get overwhelmed and give up. It will be worth it in the end...baby steps
goheadtry:
I think you misunderstood what I was asking. I was not asking how to validate a form. I was asking opinions on what particular point in my app to validate form data.
Thanks again for the replies!!!!
|