php4-beta | 200004
Date: 04/25/00
- Next message: Sterling Hughes: "[PHP4BETA] cvs: /php4/ext/standard string.c"
- Previous message: thies <email protected>: "Re: [PHP4BETA] Re: (PHP4BETA) New function chrcount"
- In reply to: Mitch Vincent: "[PHP4BETA] Crazy RC1 problem.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Sterling Hughes: "[PHP4BETA] cvs: /php4/ext/standard string.c"
- Previous message: thies <email protected>: "Re: [PHP4BETA] Re: (PHP4BETA) New function chrcount"
- In reply to: Mitch Vincent: "[PHP4BETA] Crazy RC1 problem.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

