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]);
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
{
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
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;
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
5 matches
Mail list logo