Re: [PHP] Re: Form Validation Issues

2007-05-24 Thread Tijnema
On 5/23/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Thursday 24 May 2007 00:51, Greg Donald wrote: > As I watch PHP de-evolve into Java, I find myself wanting something > lighter weight and with a smaller syntax. PHP has long since spawned into something uncontrollable. Compare the numbe

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Crayon Shin Chan
On Thursday 24 May 2007 00:51, Greg Donald wrote: > As I watch PHP de-evolve into Java, I find myself wanting something > lighter weight and with a smaller syntax. PHP has long since spawned into something uncontrollable. Compare the number of functions (and its aliases) to eg Ruby. The string

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Robert Cummings: "if every problem can be described as a nail, then all you need is a hammer." Don't you ever get the urge to swing a different hammer? I sure do. As I watch PHP de-evolve into Java, I find myself wanting somethi

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Also, Indiana and Connecticut were misspelled. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 11:16 -0500, Jared Farrish wrote: > > Abraham Maslow: "If the only tool you have is a hammer, you tend to see > every problem as a nail." $$ Robert Cummings: "if every problem can be described as a nail, then all you need is a hammer." Cheers, Rob. -- .---

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Having a giant conditional statement such as the one you have posted is a real problem for many different reasons. Below is a simple states class that allows you to test for a state using a couple of different checks (such as making both comparables lower or upper case). One major issue with the c