Re: Targetted redirection?
| From: | Analysis & Solutions | Date: | Thu, 14 Mar 2002 00:36:19 +0000 |
| Subject: | Re: Targetted redirection? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88415@lists.php.net to get a copy of this message | ||
On Thu, Mar 14, 2002 at 07:58:29AM +0800, Michael P. Carel wrote:
> I have that kind of problem before, but it whould be much better to use
> javascripts rather than the HTTP Header function when redirecting to cover
> over the frame page. Use this instead:
>
>
> echo"<scripts>top.location.href=http://your.page.direction;
> </scripts>";
>
> I've already tried and using this kind of redirection and it just works fine
> with me.
Sure it works... execpt when people who have Java'sCrap turned off come
to your site. Oh, and then there's the folks with browsers that don't
have JS at all? HTTP headers work across all browsers.
header('Location: http://foo.org/') is the real
solution.
For more info on why not to use Java'sCrap and how accomplish the same
things without it, see
http://www.analysisandsolutions.com/code/weberror.htm?j=y
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y