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

2009-05-07 Thread Tom Worster
On 5/6/09 4:02 PM, Al n...@ridersite.org 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 Al
Tom Worster wrote: On 5/6/09 4:02 PM, Al n...@ridersite.org 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 {

[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

[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? ?php function add($val1,$val2) { return ($val1 + $val2); //returns value from where it was called. } function doit(){ if() { bla bla bla; } else blar;

[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 is just like a loop