Re: Question, what to do when finding an error while validating data
| From: | Mike Zornek | Date: | Mon, 05 Apr 2004 19:21:16 +0000 |
| Subject: | Re: Question, what to do when finding an error while validating data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182396@lists.php.net to get a copy of this message | ||
Thanks the feedback so far. To expand the scope of my issue past enums
(which by their limited nature are easy to check and set defaults) let me
ask this...
There is a column called Address in my email table, Thus I am creating a PHP
object called Email to interact with it. The Address variable of this object
will hold a string like "mikezornek@mikezornek.com".
In the setAddress method should I check for a valid email address and throw
a warning then? And if so how?
Or should I simply create a method isValidAddress and do the verification in
my own interface code?
~ Mike
-----
Mike Zornek
Web Designer, Media Developer, Programmer and Geek
Personal site: <http://MikeZornek.com>
New Project: <http://WebDevWiki.com>