Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] Crazy RC1 problem.. From: joe (joe <email protected>)
Date: 04/25/00

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 <email protected>
> For additional commands, e-mail: php4beta-help <email protected>
> To contact the list administrators, e-mail: php4beta-admin <email protected>

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>