Re: Problem with header in an if
| From: | dpgirago at mdanderson dot org | Date: | Thu, 24 Mar 2005 20:51:54 +0000 |
| Subject: | Re: Problem with header in an if | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211518@lists.php.net to get a copy of this message | ||
> /* 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");
> }
Jay,
Maybe try...
if(!empty($errorsReported)) {
instead of...
if('' !== $errorsReported){
David