RE: [PHP] Redirect to a new page?

2003-03-14 Thread Michael Roger C. Bianan
if the browser doesn't support Javascript use this : if (YES) { header(Location: thispage.php); } else { header(Location: thatpage.php); } exit(); Just make sure you haven't send any output to the browser yet. A suggestion: place this code before you ever print in your code.

Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.
you can use javascript instead.. for example in a jump menu: function seleccionPerfil(form) { if (form.perfil.selectedIndex == 0) { window.location.href=yourpage1.php; } if (form.perfil.selectedIndex == 1) { window.location.href=yourpage2.php; }

Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.
btw in your case would be just if/else cheers David. On Thu, 13 Mar 2003, David E.S.V. wrote: you can use javascript instead.. for example in a jump menu: function seleccionPerfil(form) { if (form.perfil.selectedIndex == 0) {

Re: [PHP] Redirect to a new page?

2003-03-13 Thread Leif K-Brooks
if(something){ header(Location: {$_SERVER['HTTP_HOST']}/thispage.php); }else{ header(Location: {$_SERVER['HTTP_HOST']}/thatpage.php); } Beauford.2002 wrote: Hi, I have searched around for hours on this and nothing seems to work. I want simply to do this if yes - goto thispage.php if no -

Re: [PHP] Redirect to a new page?

2003-03-13 Thread Beauford.2002
] Redirect to a new page? if(something){ header(Location: {$_SERVER['HTTP_HOST']}/thispage.php); }else{ header(Location: {$_SERVER['HTTP_HOST']}/thatpage.php); } Beauford.2002 wrote: Hi, I have searched around for hours on this and nothing seems to work. I want simply to do