RE: Problem with header in an if

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

 



Jay Blanchard <mailto:jay.blanchard@xxxxxxxxxxxxxxxxxxxxx>
    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($errorsReported))?

> 	} else {
> 	/* reload the empty interface */
> 		header("Location: adminTicketMgmtCreationForm.php");
> 	}

Also the Location header should(?) receive a FQDN (although I know it
works sans FQDN) and I think I read in the manual or somewhere that you
should put an exit; after it.


.02

Chris.

-- 
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