Connecting Tech Pros Worldwide Forums | Help | Site Map

Html Headers

Guest
 
Posts: n/a
#1: Mar 24 '06
In php this header statment,
header("Location: mls_Read_change_verify_email.php");
will jump to that location as a new window. In native html link you can have
a browser window link tag such as, _top, _self, or _new. What header would
I use in php to acompany the above header statement so it opens in the same
browser window?



Mark Parnell
Guest
 
Posts: n/a
#2: Mar 24 '06

re: Html Headers


Deciding to do something for the good of humanity,
<barbish4@adelphia.net> declared in comp.infosystems.www.authoring.html:
[color=blue]
> In php this header statment,
> header("Location: mls_Read_change_verify_email.php");
> will jump to that location as a new window.[/color]

I doubt it. HTTP headers (which is what you are setting through PHP -
invalidly, BTW[1]) have no concept of "windows".

[1] It needs to be an absolute URI, e.g.
http://example.com/mls_Read_change_verify_email.php

--
Mark Parnell
Thankyou blinkynet!
http://blinkynet.net/comp/uip5.html
Jukka K. Korpela
Guest
 
Posts: n/a
#3: Mar 24 '06

re: Html Headers


Mark Parnell wrote:
[color=blue]
> HTTP headers - - have no concept of "windows".[/color]

This depends on what you call HTTP. The HTTP 1.1 specification has no
such concept, but HTTP is by nature an open protocol which allows
headers to be added by other specifications or by private agreements.
Netscape once made a private agreement on Window-Target with itself, see
http://wp.netscape.com/eng/mozilla/2...mo/target.html
Luckily it seems that the idea was abandoned later.
Harlan Messinger
Guest
 
Posts: n/a
#4: Mar 24 '06

re: Html Headers


barbish4@adelphia.net wrote:[color=blue]
> In php this header statment,
> header("Location: mls_Read_change_verify_email.php");
> will jump to that location as a new window. In native html link you can have
> a browser window link tag such as, _top, _self, or _new. What header would
> I use in php to acompany the above header statement so it opens in the same
> browser window?[/color]

There isn't one. Ordinarily the Location header accompanies Status
headers that tell the user agent that the resource named in the Location
header should be requested *instead of* the resource originally
requested, not in addition to it. In those cases, there wouldn't be any
reason to open a new window--what would appear in the original window?
axlq
Guest
 
Posts: n/a
#5: Mar 24 '06

re: Html Headers


In article <hZidnToeZpQ08b7Z4p2dnA@adelphia.com>,
<barbish4@adelphia.net> wrote:[color=blue]
>In php this header statment,
> header("Location: mls_Read_change_verify_email.php");
>will jump to that location as a new window.[/color]

It does? What broken browser does that? It opens the new page in the
same window on every browser I have tried.

Also, the location needs to be a complete URI, not a relative location.

-A
Harlan Messinger
Guest
 
Posts: n/a
#6: Mar 24 '06

re: Html Headers


Harlan Messinger wrote:[color=blue]
> barbish4@adelphia.net wrote:
>[color=green]
>> In php this header statment,
>> header("Location: mls_Read_change_verify_email.php");
>> will jump to that location as a new window. In native html link you
>> can have
>> a browser window link tag such as, _top, _self, or _new. What header
>> would
>> I use in php to acompany the above header statement so it opens in the
>> same
>> browser window?[/color]
>
> There isn't one. Ordinarily the Location header accompanies Status
> headers that tell the user agent that the resource named in the Location
> header should be requested *instead of* the resource originally
> requested, not in addition to it. In those cases, there wouldn't be any
> reason to open a new window--what would appear in the original window?[/color]

Wait--did you get new-window and same-window backwards?
Closed Thread