RE: Problem with header in an if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
>                 /* 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 */
>                                  header("Location:
adminTicketMgmtCreationForm.php");
>                 } 

[/snip]

I have tried ...
0 < count($errorsReported)
0 !=
0 !==
isset($errorReported)
!empty
'' !=
'' !==

I tried reversing the order in the statement itself, no go.
And Chris, thanks for the heads up, I put the exit() and the FQDN in
there. 

I am headed out for the afternoon, perhaps a clearer head will prevail
in the morning!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux