RE: [PHP] nested if in a for statement

2002-12-17 Thread Edward Peloke
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.

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
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

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
, 2002 2:03 PM Subject: [PHP] nested if in a for statement > I am checking the values of a submited forms for empty fields with the code > below. My problem is that the echo statement is being executed once > regardless of whether or not the if statement is true. What am I missing? &

Re: [PHP] nested if in a for statement

2002-12-17 Thread Douglas Douglas
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";

Re: [PHP] nested if in a for statement

2002-12-17 Thread Tim Ward
ssage - From: James Brennan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 9:03 PM Subject: [PHP] nested if in a for statement > I am checking the values of a submited forms for empty fields with the code > below. My problem is that the echo statement

[PHP] nested if in a for statement

2002-12-17 Thread James Brennan
I am checking the values of a submited forms for empty fields with the code below. My problem is that the echo statement is being executed once regardless of whether or not the if statement is true. What am I missing? thanks, loopjunkie snip /* variables in array set earlier in script