[thelist] Null entry in form

Jeremy Weiss eccentric.one at gmail.com
Wed Apr 25 11:13:01 CDT 2007


 

> 		if ((!is_null($score1)) and 
> (!is_null($score2))) {	 //This line added
> 25/04/07 to skip code below if entry is null.

I could be wrong, but I believe it should be

if (!((is_null($score1))) or (is_null($score2))) {

But, this doesn't work for values of "" (empty string) and you can't use
EMPTY because of 0 is a valid value here. Thus Phil's advice would probably
be a good way to go...

if (!((is__numeric($score1))) and (!(is__numeric($score2))) {

-jeremy

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Online Lead Generation & Internet Consulting
by Blue Phoenix Consulting, LLC
http://www.BluePhoenixConsulting.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the thelist mailing list