473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

header() problem with Window-target

header("Location: http://$SERVER_NAME/index.php; Window-target: top"");

I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
the frame that the redirection script is located to _top? I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.

Thanks
Phil
Jul 16 '05 #1
3 26238
Phil Powell wrote:
header("Location: http://$SERVER_NAME/index.php; Window-target: top"");

I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
the frame that the redirection script is located to _top?
hehehe, as far as I know: no.

Why don't you go to http://$SERVER_NAME/index.php with
a standard HTML link instead of a server redirect?

<?php
echo "<a href=\"http://$SERVER_NAME/index.php\"
target=\"_top\">index</a>";
?>

hth
I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.


Mine is off, and I'm in Europe, and I get mad when I click a link
and a new window pops up(*)!!! When I want a new window
I'll Shift-Click, thank you very much :)

(*) not really: my proxy changes [target="xxx"] to [notarget]
--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #2
"Phil Powell" <so*****@erols.com> writes:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); ^^^^^^^^^^^^^^^^^^ I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
What should underlined (Window-target: top) be? I don't think you can do
that (pseudo-javascript?) in HTTP headers.
the frame that the redirection script is located to _top? I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.


Just an idea, since it might not fit into your concept of site: use
target="_top" in link (<a href...>) tag, forms, or whereever it can be
used. It should break out of frame, load page on top of existing frameset
(yes, it *can* be another frameset).

HTH.

--
Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot net
Jul 16 '05 #3
I had to forget the whole thing and serve up some HTML with a hard-coded
link with target=_top. Very sloppy solution but the only one there is.

Phil

"Vedran Krivokuca" <ne**@3dot14.net> wrote in message
news:wu**********@foo.tweety.net...
"Phil Powell" <so*****@erols.com> writes:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); ^^^^^^^^^^^^^^^^^^
I am getting a 403 Forbidden upon running this script, which is not what I wanted. Is there a way I can redirect, but at the same time redirect out of
What should underlined (Window-target: top) be? I don't think you can do
that (pseudo-javascript?) in HTTP headers.
the frame that the redirection script is located to _top? I don't want

to have to rely on Javascript to do this as this is a foreign site (European) where Javascript is often turned off.


Just an idea, since it might not fit into your concept of site: use
target="_top" in link (<a href...>) tag, forms, or whereever it can be
used. It should break out of frame, load page on top of existing frameset
(yes, it *can* be another frameset).

HTH.

--
Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot

net
Jul 16 '05 #4

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

Similar topics

0
by: maxx | last post by:
Hi, I want use the header authentification (HTTP/PHP module), and i've a big problem for to get the varaibles 'PHP_AUTH-*". This is my source code :...
2
by: Slash | last post by:
I often do a lot of text-mode programming in Linux and wanted to use colors in text mode, and found the ncurses library needlessly complex for small applications. So I wrote my own little header to...
2
by: Karthik | last post by:
When I try to compile my VC++ program (am Using VS6.0). I get the following error in a header file ATLCONV.H. c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(52) : error...
4
by: Alan Silver | last post by:
Hello, If I have a control in the header template of a repeater, how do I get at this in code? I know how to do this for an ItemTemplate, you just do... txtFred =...
1
by: Dan V. | last post by:
Does anyone know why the header looks correct in IE 6.0 and not Firefox 1.07? I am trying to have a header that looks good when you expand it wider and smaller. In other words when you shrink...
1
by: patelbrijeshn | last post by:
Hi , I want to display a huge table. So I want to make the table header visible on the screen even as the user scrolls the window. I am using div tag to create the floating table header. Here is...
5
by: 2291980 | last post by:
Hello can any body tell me the dff between function redirect($url) { echo "<script>"; echo "window.location='".$url."'"; echo "</script>";
6
ak1dnar
by: ak1dnar | last post by:
Hi, I am creating script to download some files using download dialog box.First time i tried to use ajax for this, but i failed. So i went through this way, By Using this function i am going to...
2
by: rohini | last post by:
Dear friends, In the popup window i am using the header for downloading the files. I call the popup window in one directory say for example: /sample/download/popup.php In the...
2
by: kelvinwebdesigner | last post by:
Hi everybody. Im currently developing an application where users can upload files and later get acess to the url. Im now having this trouble with header Cannot modify header information – headers...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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: 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 ...

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.