header("Location: page.php target=_parent")????? - PHP

This is a discussion on header("Location: page.php target=_parent")????? - PHP ; How should I formulate the header function to replace the current frameset page with a new one? I have tried a combination of header("Location: page.php target=_parent"); but I get an error message saying the page does not exist. Also, can ...

+ Reply to Thread
Results 1 to 5 of 5

header("Location: page.php target=_parent")?????

  1. Default header("Location: page.php target=_parent")?????

    How should I formulate the header function to replace the current frameset
    page with a new one? I have tried a combination of header("Location:
    page.php target=_parent"); but I get an error message saying the page does
    not exist.

    Also, can I save a frameset page with a .php extension? I have tried it out
    and it seems to work. Maybe perhaps I should not do this as there may be
    some implications later on???

    Regards

    Jacques

  2. Default Re: [PHP] header("Location: page.php target=_parent")?????

    On Friday 25 March 2005 08:57, Jacques wrote:
    > Also, can I save a frameset page with a .php extension? I have tried it
    > out and it seems to work. Maybe perhaps I should not do this as there may
    > be some implications later on???


    I have not had any problems with .php ext frameset pages. I have had 3
    different sites set up this way for about a year an no problems.

    --
    Win a Vespa Scooter or a Dell Gift Card worth $3,000.00
    http://www.morningstarcom.net/raffle-contest.php

    --
    This message has been scanned for viruses and
    dangerous content by MailScanner, and is
    believed to be clean.
    MailScanner thanks transtec Computers for their support.

  3. Default Re: [PHP] header("Location: page.php target=_parent")?????

    On Fri, 2005-03-25 at 08:57, Jacques wrote:
    > How should I formulate the header function to replace the current frameset
    > page with a new one? I have tried a combination of header("Location:
    > page.php target=_parent"); but I get an error message saying the page does
    > not exist.
    >
    > Also, can I save a frameset page with a .php extension? I have tried it out
    > and it seems to work. Maybe perhaps I should not do this as there may be
    > some implications later on???



    'header' send raw http headers of which 'target' is NOT a part of. Use
    plain html to do it ot post a better description of what your trying to
    do. Surely there is a way to accomplish it but perhaps not along the
    same lines of thought your current pursing.


    --

    s/:-[(/]/:-)/g


    Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
    ======================================================================
    gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
    Key Info: http://gfx-design.com/keys
    Linux Registered User #339825 at http://counter.li.org

  4. Default Re: [PHP] header("Location: page.php target=_parent")?????

    > How should I formulate the header function to replace the current frameset
    > page with a new one? I have tried a combination of header("Location:
    > page.php target=_parent"); but I get an error message saying the page does
    > not exist.
    >
    > Also, can I save a frameset page with a .php extension? I have tried it out
    > and it seems to work. Maybe perhaps I should not do this as there may be
    > some implications later on???


    you cannot replace the main frameset using HTTP headers in the
    individual frame pages. HTTP headers do not allow for this because
    frames are a feature of HTML, not HTTP. therefore you must use HTML or
    javascript techniques to get a single frame to change the overall
    frameset.

    however, for what it's worth, you can replace the main framset using a
    header in the main frameset page itself, if you make that a php script
    and use the header() function. (which means the answer to your second
    question is yes)

    /jw

  5. Default Re: header("Location: page.php target=_parent")?????

    use javascript
    <body onLoad="javascriptarent.document.location.href='page.php'"></body>
    not
    the header function.

    "Jacques" <admin@hrfocus.co.za> wrote in message
    news:20050325135722.7177.qmail@lists.php.net...
    > How should I formulate the header function to replace the current frameset
    > page with a new one? I have tried a combination of header("Location:
    > page.php target=_parent"); but I get an error message saying the page does
    > not exist.
    >
    > Also, can I save a frameset page with a .php extension? I have tried it

    out
    > and it seems to work. Maybe perhaps I should not do this as there may be
    > some implications later on???
    >
    > Regards
    >
    > Jacques


+ Reply to Thread