Crazy RC1 problem..

From: Date: Tue, 25 Apr 2000 18:13:26 +0000
Subject: Crazy RC1 problem..
Groups: php.version4 
Request: Send a blank email to php-version4+get-14052@lists.php.net to get a copy of this message
Ok, I've been staring at this long enough.. Check this out.. Using Apache 1.3.12 and PHP4 RC1. This function.. function validate_reseller_form() { GLOBAL $oForm; $iError = 0; if(empty($this->aFormdata["firstname"])) { $oForm->aEntryerr["firstname"] = true; $iError++; } if(empty($this->aFormdata["lastname"])) { $oForm->aEntryerr["lastname"] = true; $iError++; } if(empty($this->aFormdata["address1"])) { $oForm->aEntryerr["address1"] = true; $iError++; } if(empty($this->aFormdata["phone_number"])) { $oForm->aEntryerr["phone_number"] = true; $iError++; } if(empty($this->aFormdata["username"])) { $oForm->aEntryerr["username"] = true; $iError++; } if(empty($this->aFormdata["password"])) { $oForm->aEntryerr["password"] = true; $iError++; } if(empty($this->aFormdata["email"])) { $oForm->aEntryerr["email"] = true; $iError++; } if($iError == 0) { return(true); } else { return(false); } } When called in the next function, gives me Fatal error: Call to undefined function: validate_reseller() in classes/class_admin.req on line 1178 line 1178 : if (validate_reseller()) { It's nutty. Am I missing something simple here or have I broken something? :-) Thanks! -Mitch

« previous php.version4 (#14052) next »