Re: [PHP] Value (not) being retuned by a function

2005-12-11 Thread MARG
Hi Robert, > I would wager because there's a ! operator preceding the ereg() call. > Also you have very dirty code, your isEmailOk() function doesn't return > a value in the case that the if expression fails, it assumes PHP will > return something useful (PHP returns null, but relying on that is a

Re: [PHP] Value (not) being retuned by a function

2005-12-11 Thread Robert Cummings
On Sun, 2005-12-11 at 14:55, MARG wrote: > Hi, > > I have this form: > http://www.tuxdoit.com/newsletter.php > > If you care to check it, you'll see that > http://www.tuxdoit.com/formsResult.php > > never returns the function value: > > formsResult.php: > - >

[PHP] Value (not) being retuned by a function

2005-12-11 Thread MARG
Hi, I have this form: http://www.tuxdoit.com/newsletter.php If you care to check it, you'll see that http://www.tuxdoit.com/formsResult.php never returns the function value: formsResult.php: - functions.php: