473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Header(Location) query

I have a split frame which holds in the upper part a php file with a header
location function, which opens a new file (lower.php). I'm trying to get
the header function to open lower.php in the lower half of the frame,

header("Location: lower.php TARGET='lowframe')

with out the Target setting, it opens lower.php in the upper part (ie it
replaces its self), but with the TARGET statement it can't find the file.

Is this do able? or is the fact that the TARGET= is HTML which messes the
header up.

regards
Stephen

Aug 1 '05 #1
2 2398
The header function only takes an absolute URL (so no target). Try using
Javascript instead.

Greetz,

DXTrim

"Stephen Preston" <st*************@btconnect.com> wrote in message
news:dc**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
I have a split frame which holds in the upper part a php file with a header location function, which opens a new file (lower.php). I'm trying to get
the header function to open lower.php in the lower half of the frame,

header("Location: lower.php TARGET='lowframe')

with out the Target setting, it opens lower.php in the upper part (ie it
replaces its self), but with the TARGET statement it can't find the file.

Is this do able? or is the fact that the TARGET= is HTML which messes the
header up.

regards
Stephen

Aug 1 '05 #2
On Mon, 1 Aug 2005 15:14:33 +0000 (UTC), "Stephen Preston"
<st*************@btconnect.com> wrote:
I have a split frame which holds in the upper part a php file with a header
location function, which opens a new file (lower.php). I'm trying to get
the header function to open lower.php in the lower half of the frame,

header("Location: lower.php TARGET='lowframe')

with out the Target setting, it opens lower.php in the upper part (ie it
replaces its self), but with the TARGET statement it can't find the file.

Is this do able?
No, not with HTTP headers.
or is the fact that the TARGET= is HTML which messes the header up.


Yes.

Javascript would appear to be the solution.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Aug 1 '05 #3

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

Similar topics

6
by: Filth | last post by:
Hi this is probably very easy to sort but I want to do the following:- header( "Location: subscribe_form.php?name='.$_GET.'&email='.$_GET.'"); but this pulls up the error:- Parse error:...
10
by: Margaret MacDonald | last post by:
I'm seeing a problem that has me flummoxed. The only thing I can think of is that I'm violating some rule I don't know about. I have some code that does some processing and then does a...
23
by: lwoods | last post by:
I am trying to pass some info to another page on my site. I set "session_start()" in page 1, assign a session variable to a value, then execute a "header('Location: ....')." But on the target...
2
by: Ladbroke | last post by:
Hiya, got a little prob with the syntax for header ( ' Location .... with variable). Usually examples are given with a complete URL, like: ..... header( 'Location: login/testsite/start.php'...
6
by: P-Rage | last post by:
Hello everyone, I was wondering what could possibly cause Internet Explorer 6 to loop a page usging a header(Location:) statement. For example, a page called 'page1.php': if((isset($_POST))...
4
by: geshan | last post by:
In php5 I am not able to use include funciton and header("location:""" together please help.
5
by: One | last post by:
Hi guys - I have a problem after a client clicks a Confirm button on a form - the form processes the data, inserts into a database, and then redirects using header Location. I have tested this...
8
by: pedalpete | last post by:
I thought this should be simple, but i can't seem to get it to work. I'm trying to do a simple redirect to a page, but need to pass a variable. I've tried a few things, but nothing seems to...
6
johny10151981
by: johny10151981 | last post by:
Its not a php Question. Its a HTTP question how web server send client Location header request. The thing is, after sending "\r\n\r\n" web server start to send data to web client but even...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
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...

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.