Re: Header and Targets
| From: | F�bio Ottolini | Date: | Fri, 10 Nov 2000 18:58:28 +0000 |
| Subject: | Re: Header and Targets | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24693@lists.php.net to get a copy of this message | ||
Thanks for your answer and all the others. In fact what happends is the
following:
<?php
if (empty($asd[0]) || empty($asd[1]) || empty($asd[2]) || empty($asd[3])) {
header("Location: http://www.eletronic.net/");
exit;
}
?>
$asd is a cookie and what I'm trying to do is to send the user to the main
page if he doesn't have been trhu the login process. It works fine except
for the fact that this cookie test is inside a frame page and the main page
loads inside the frame. Any sugestions?
Best regards,
Fábio Ottolini
Eletronic.Net
----- Original Message -----
From: "Jason Brooke" <jason@qgl.org>
To: "Fábio Ottolini" <fabio.ottolini@uol.com.br>;
<php-general@lists.php.net>
Sent: Wednesday, November 08, 2000 12:57 AM
Subject: Re: [PHP] Header and Targets
>
> target="_top" is something handled by the browser on the client side
> http headers are sent by the server, so no, you can't
>
> how come you don't just put target="_top" in the href that requests the
> php script that does the redirect?
>
> or if you're not doing it via a href and are using javascript or
> something instead, just make the parent frame load a new location from
> the javascript
>
> jason
>
>
> ----- Original Message -----
> From: "Fábio Ottolini" <fabio.ottolini@uol.com.br>
> To: <php-general@lists.php.net>
> Sent: Wednesday, November 08, 2000 12:42 PM
> Subject: [PHP] Header and Targets
>
>
> > Hej alla,
> >
> > Is there any way to add a target=_top inside a header? I have a frame
> page
> > and I would like to redirect the user to a new HP using Header, but
> the new
> > HP opens inside the frame...
> > Thanks in advance!!!
> >
> > Best regards,
> >
> > Fábio Ottolini
> > Eletronic.Net