in reply to Input validation
If you just need to check for the presence of A separator, your code (as ammended) would be sufficient.
However, you might want to check other things, such as the number of fields you get after the split, if the fields contain the data you expected (you do have a plan on how to handle empty fields, don't you?) etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Input validation
by pacman (Initiate) on Mar 23, 2004 at 09:01 UTC | |
by ysth (Canon) on Mar 23, 2004 at 10:25 UTC |