A question about header()?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

All of the examples I've seen use header to relad the current page or an
entirely new page.

Can it be used in a frame environment to cause a page to be loaded into
a different frame?  If so, how do I specify the particular frame as well
as page?

(The particular application I have in mind has the user chase down a
      tree of menus in one frame, and finally select a form into a
second frame, to be filled out; once that form is completed, I want to
revert to a prior menu is the chain, without reloading the site from

John Kopf

Re: A question about header()?

John Kopf wrote:
Quoted text here. Click to load it

Not that I am aware of. When a redirect header gets interpreted by your
browser, it already knows which frame it was requested for. It would
open a nice can of security worms if that were possible.

Quoted text here. Click to load it

Look at the HTML specs: the "form" element can have a "target" attribute.

Re: A question about header()?

Quoted text here. Click to load it

The short answer is no.

I suspect you'll need to implement this in Javascript.

But do have a look at phplm.


Site Timeline