Re: [PHP] Re: speaking of control structures...

2009-05-07 Thread Al
Tom Worster wrote: On 5/6/09 4:02 PM, "Al" wrote: Here's the way I handle validating user form inputs. Each function validates several things and throws an error with the message stating what's wrong. try { checkEmailAddr($userSubmitedDataArray[EMAIL_ADDR_FIELD]);

Re: [PHP] Re: speaking of control structures...

2009-05-07 Thread Tom Worster
On 5/6/09 4:02 PM, "Al" wrote: > Here's the way I handle validating user form inputs. Each function validates > several things and throws an error with the message stating what's wrong. > > try > { > checkEmailAddr($userSubmitedDataArray[EMAIL_ADDR_FIELD]); >

[PHP] Re: speaking of control structures...

2009-05-06 Thread Al
Tom Worster wrote: there's a control structure i wish php had: a simple block that you can break out of, e.g. block { if ( condition ) break; blah... blah... if ( another condition ) break; blah... blah... etc... } the block is just like a loop except that it is ex

[PHP] Re: speaking of control structures...

2009-05-05 Thread Shawn McKenzie
Tom Worster wrote: > there's a control structure i wish php had: a simple block that you can > break out of, e.g. > > block { > > if ( condition ) > break; > > blah... > blah... > > if ( another condition ) > break; > > blah... > blah... > > etc... > > } > > the block

[PHP] Re: speaking of control structures...

2009-05-05 Thread Maarten Schalekamp
im not sure if i understand exactly what you want. but from what ive gathered, did you try to make use of a FUNCTION? "Tom Worster" wrote in message news:c625f5f7.a80f%...@thefsb.org... there's a control structure i wish php had: a simple block that you can break out of, e.g. block { if (