RE: [PHP] Problem with header in an if

From: Date: Thu, 24 Mar 2005 20:46:34 +0000
Subject: RE: [PHP] Problem with header in an if
Groups: php.general 
Request: Send a blank email to php-general+get-211516@lists.php.net to get a copy of this message
Jay Blanchard <mailto:jay.blanchard@niicommunications.com> 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.

« previous php.general (#211516) next »