Re: Logic Help...

From: Date: Wed, 27 Aug 2003 21:09:41 +0000
Subject: Re: Logic Help...
References: 1  Groups: php.db php.db 
Request: Send a blank email to php-db+get-30153@lists.php.net to get a copy of this message
From: "NIPP, SCOTT V (SBCSI)" <sn4265@sbc.com> > Thanks for the feedback. This seems to have helped, but something > is still not working with the logic. Here is the updated code: > > <?php > while($cntr != 0) { > $cntr--; > if (($shell[$cntr] == "") || ($grp[$cntr] == "")) { > echo "<p align=\"center\"><font color=\"#99CCCC\" > size=\"4\">Sorry, but your request was not filled out completely. Please > resubmit this request ensuring that you have selected a Primary Group and > Default Shell.</font></p>"; > echo "<p align=\"center\"><font color=\"#99CCCC\" > size=\"4\">Please > follow this <a > > href=\"http://ldsa.sbcld.sbc.com/DW/NewUser/newuser.php\">link</a> > to return > to the beginning of the request process.</font></p>"; > exit; > } > } > ?> > > Now, the test conditions never seem to enter into this portion of > code. I am unable to figure out why at this point. Thanks again for the > help. Okay... let's do some basic debugging now. What does print_r($shell) and print_r($grp) display? Are there any entries that are equal to an empty string? ---John Holmes...

« previous php.db (#30153) next »