HighDots Forums  

Html Headers

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Html Headers in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default Html Headers - 03-23-2006 , 10:51 PM






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?



Reply With Quote
  #2  
Old   
Mark Parnell
 
Posts: n/a

Default Re: Html Headers - 03-23-2006 , 10:57 PM






Deciding to do something for the good of humanity,
<barbish4 (AT) adelphia (DOT) net> declared in comp.infosystems.www.authoring.html:

Quote:
In php this header statment,
header("Location: mls_Read_change_verify_email.php");
will jump to that location as a new window.
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


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Html Headers - 03-24-2006 , 03:54 AM



Mark Parnell wrote:

Quote:
HTTP headers - - have no concept of "windows".
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.


Reply With Quote
  #4  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Html Headers - 03-24-2006 , 10:52 AM



barbish4 (AT) adelphia (DOT) net wrote:
Quote:
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?
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?


Reply With Quote
  #5  
Old   
axlq
 
Posts: n/a

Default Re: Html Headers - 03-24-2006 , 01:14 PM



In article <hZidnToeZpQ08b7Z4p2dnA (AT) adelphia (DOT) com>,
<barbish4 (AT) adelphia (DOT) net> wrote:
Quote:
In php this header statment,
header("Location: mls_Read_change_verify_email.php");
will jump to that location as a new window.
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


Reply With Quote
  #6  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Html Headers - 03-24-2006 , 01:46 PM



Harlan Messinger wrote:
Quote:
barbish4 (AT) adelphia (DOT) net wrote:

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?

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?
Wait--did you get new-window and same-window backwards?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.