RE: [PHP] Problem with header in an if

From: Date: Thu, 24 Mar 2005 20:59:44 +0000
Subject: RE: [PHP] Problem with header in an if
Groups: php.general 
Request: Send a blank email to php-general+get-211519@lists.php.net to get a copy of this message
[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!

« previous php.general (#211519) next »