Re: [PHP4BETA] Crazy RC1 problem..

From: Date: Wed, 26 Apr 2000 02:01:34 +0000
Subject: Re: [PHP4BETA] Crazy RC1 problem..
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14056@lists.php.net to get a copy of this message
Could this be the problem?; function validate_reseller_form() if (validate_reseller()) { sb-> if (validate_reseller_form()) { joe Mitch Vincent wrote: > > 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 > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#14056) next »