Re: PhP 4.2.1 (and various)

From: Date: Wed, 15 May 2002 14:32:51 +0000
Subject: Re: PhP 4.2.1 (and various)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-97728@lists.php.net to get a copy of this message
Olav: On Wed, May 15, 2002 at 11:53:06AM +0100, Olav Bringedal wrote: > $user=$Session["user"]; > > if(!$Authorized) > { > header ("Location: http://jaggu.org"); > } As I was saying before, write your code in a way that doesn't generate error messages. For example, the above passage would be error free if you did this... if( empty($Authorized) ) { header ('Location: http://jaggu.org'); } else { $user = $Session['user']; } Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#97728) next »