RE: [PHP] redirection to another page function

From: Date: Mon, 23 Apr 2001 01:56:51 +0000
Subject: RE: [PHP] redirection to another page function
Groups: php.general 
Request: Send a blank email to php-general+get-49784@lists.php.net to get a copy of this message
> I never had any trouble using header() to redirect, but > wouldn't something like this work even better (without > worring about previous outputs)?? > > function redirect($dest) > { > ?> > <script language="JavaScript"> > parent.location.href='<?=$dest?>'; > </script> > <? > } > > it would work wouldn't it? In Netscape: Menu >> Edit >> Preferences >> Advanced >> [ ] Enable Javascript ^ Not ticked Oops. I just broke that redirection. :) Jason

« previous php.general (#49784) next »