iables and this
is causing it to pass.
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 4:14 PM
To: James Brennan; [EMAIL PROTECTED]
Subject: Re: [PHP] nested if in a for statement
looks ok as long as you are really testing what
you mean to.
Oops sorry didn't mean to add to the spam. LOL
-Kevin
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 2:24 PM
Subject: Re: [PHP] nested if in a for statement
> Prepare the rubber
Prepare the rubber glove...
Chang this // $i <= count($userVars)
To this // $i < count($userVars);
Arrays start at index 0, not 1.
-Kevin
- Original Message -
From: "James Brennan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 2:03 PM
Subject: [PHP] neste
I think your error is this:
$userVars = array($nameFirst, $nameLast, $pass,
$pass2, $auth, $dob_year, $dob_month, $dob_day);
for ($i=0; $i <= count($userVars); $i++) {
if (empty($userVars[$i])) {
echo "please enter all required info";
looks ok as long as you are really testing what
you mean to. As you've written it if any of the variables
are an empty string, zero, logical false or not set then
the if statement will be true.
what is $auth?
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
F
5 matches
Mail list logo