Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 00:15, Alex Hogan wrote: case 1: if(empty($_SESSION['sellocation'])){ $_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? redirect('cf_survey.php?cf=0'); If you want to set a session variable (and keep it set) when

RE: [PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
$_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. If you want to set a session variable (and keep it set) when you do a redirect you need to the close the session first. Thanks..., alex

Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 01:32, Alex Hogan wrote: $_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. Please, in future, whenever you post code use copy and paste. It will save you, and people responding