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 res

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

[PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
Hi All, I know this may be a bad time..., that whole top posting vs. bottom posting debate has got me riveted, (especially after getting a monitor full the other day), but I have a question. I have a page that displays a survey. 11 questions all separated in a switch statement on a page na