473,473 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Html Headers

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?
Mar 24 '06 #1
5 1892
Deciding to do something for the good of humanity,
<ba******@adelphia.net> declared in comp.infosystems.www.authoring.html:
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
Mar 24 '06 #2
Mark Parnell wrote:
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.
Mar 24 '06 #3
ba******@adelphia.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?
Mar 24 '06 #4
In article <hZ********************@adelphia.com>,
<ba******@adelphia.net> wrote:
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
Mar 24 '06 #5
Harlan Messinger wrote:
ba******@adelphia.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?
Mar 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Rainmaker | last post by:
Greetings, I have not been able to find the documentation that will allow me to insert php code inside the html code in the $message block in the mail() function. Using the example in the help...
15
by: Cem Louis | last post by:
Hi to all, I have the following html mail sender code written in php. It is working properly but my problem is, code doesn't send the text correctly which is in the varible "$mesaj". Code sends...
2
by: Jaunty Edward | last post by:
HI, I had been trying to send a html email from the folowing script that i took from zend site and modified. Its working fine, but it sends some garbage in the end of the mail. I had posted this...
4
by: Ann | last post by:
Hi, I am trying to send a html email from a php script. This script emails a common information to all the members in the database. The only problem is I cannot specify colors, hyperlinks...
2
by: Alex | last post by:
Hi, My booking system sends a HTML formated email as a recipt to the client on completion of their booking. All is working well however it has been pointed out to me that not all people's email...
7
by: geek7 | last post by:
OK, I'm trying to create an email and when it sends the email, it mostly works except that there are '!' inserted at some spots. Checking the html source of the email, looks like they are...
3
by: mtuller | last post by:
Alright. I have tried everything I can find, but am not getting anywhere. I have a web page that has data like this: <tr > <td headers="col1_1" style="width:21%" > <span class="hpPageText"...
1
by: robbiesmith79 | last post by:
Just so this is out there on the web, I battled the past 24 hours about this. Background info... I developed a ecommerce website in PHP 4 on a shared linux hosting plan from GoDaddy and had the...
6
by: patrice.fiset | last post by:
Hi all, When I send the html email, the only thing I receive is the tags (the html codes basically). I want to be able to see the email like a html page, what is wrong with my code? Here is a...
27
matheussousuke
by: matheussousuke | last post by:
I'm having trouble with e-mail sending, I mean, the website is suposed to send a confirmation email after sign up, but it gets like text plain instead of HTML May someone help me, please? ...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.