Re: [PHP] Problem with header in an if

2005-03-26 Thread Burhan Khalid
Jay Blanchard wrote: [snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i < count($errorsReported); $i++){ echo $errorsReported[$i]; } unset($errorsReported);

Re: [PHP] Problem with header in an if SOLVED

2005-03-25 Thread Jochem Maas
Jay Blanchard wrote: [snip] /* check for errors */ $arrCheckItems = array( 'Name', 'Dept', 'Level', ); /* check for blanks */ foreach($_POST AS $key=>$value){ if(in_array(niceName($key), $arrCheckItems)){ $errorsReported[] = notBlank($key, $value); } } Even if the return from notBlank is

RE: [PHP] Problem with header in an if SOLVED

2005-03-25 Thread Jay Blanchard
[snip] /* check for errors */ $arrCheckItems = array( 'Name', 'Dept', 'Level', ); /* check for blanks */ foreach($_POST AS $key=>$value){ if(in_array(niceName($key), $arrCheckItems)){ $errorsReported[] = notBlank($key, $value); } } Even if

RE: [PHP] Problem with header in an if

2005-03-25 Thread Jay Blanchard
[snip] > /* send the errors to the interface and exit*/ > if('' !== $errorsReported){ > for($i = 0; $i < count($errorsReported); $i++){ > echo $errorsReported[$i]; > } unset($errorsReported); print_r($erro

RE: [PHP] Problem with header in an if

2005-03-25 Thread Jay Blanchard
[snip] > /* send the errors to the interface and exit*/ > if('' !== $errorsReported){ > for($i = 0; $i < count($errorsReported); $i++){ > echo $errorsReported[$i]; > } unset($errorsReported); print_r($erro

Re: [PHP] Problem with header in an if

2005-03-24 Thread Jochem Maas
Jay Blanchard wrote: /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i < count($errorsReported); $i++){ echo $errorsReported[$i]; } } else { /* reload the empty interface

RE: [PHP] Problem with header in an if

2005-03-24 Thread Chris W. Parker
Jay Blanchard on Thursday, March 24, 2005 1:00 PM said: > I have tried ... > 0 < count($errorsReported) > 0 != > 0 !== > isset($errorReported) > !empty > '' != > '' !== Have you tried explicitly setting $errorsReported to "" to see where it goes? $errorsReported =

RE: [PHP] Problem with header in an if

2005-03-24 Thread Jay Blanchard
[snip] > /* send the errors to the interface and exit*/ > if('' !== $errorsReported){ > for($i = 0; $i < count($errorsReported); $i++){ > echo $errorsReported[$i]; >

Re: [PHP] Problem with header in an if

2005-03-24 Thread dpgirago
>/* send the errors to the interface and exit*/ >if('' !== $errorsReported){ >for($i = 0; $i < count($errorsReported); $i++){ >echo $errorsReported[$i]; >

RE: [PHP] Problem with header in an if

2005-03-24 Thread Chris W. Parker
Jay Blanchard on Thursday, March 24, 2005 12:34 PM said: I don't know if either of these two things will make a difference but here they are anyway. > /* send the errors to the interface and exit*/ > if('' !== $errorsReported){ Why not if(!empty($errors

[PHP] Problem with header in an if

2005-03-24 Thread Jay Blanchard
/* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i < count($errorsReported); $i++){ echo $errorsReported[$i]; } } else { /* reload the empty interface */ he