Re[2]: [PHP] if cant use header what should i use? or how to do this?

From: Date: Sat, 04 May 2002 02:18:13 +0000
Subject: Re[2]: [PHP] if cant use header what should i use? or how to do this?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96007@lists.php.net to get a copy of this message
Hey 'PHP General List', Got your email on:Friday, May 03, 2002, 7:59:29 PM writing: :---- >> else if($do_cancel) { >> Header("Location: menu?pg=news"); <<---- wrong JH> Why can't you just check for $do_cancel at the beginning of the script. JH> If you really have to re-direct to another page, why do you have to JH> ouput anything before hand? It's not going to be shown, anyhow. Any page JH> with this problem needs to have it's logic rethought. JH> If you can't or are unwilling to do that, then use output buffering. JH> ---John Holmes... :---- thank you all for help.. problems have been solved. there was some logic things that i did in wrong way... thanks :------------------------------: Have A Nice Day! Mantas Kriauciunas A.k.A mNTKz Contacts: Mantuks@attbi.com Http://mntkz-hata.visiems.lt

« previous php.general (#96007) next »