Professional Web Applications Themes

HEADER( ) query - PHP Development

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...

  1. #1

    Default HEADER( ) 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


    Stephen Guest

  2. #2

    Default Re: HEADER( ) query

    "Stephen Preston" <com> kirjoitti
    viestissä:dcldee$eq3$dmz.ncs.ea.ibs-infra.bt.com... 


    I don't know if it's doable, I tried to look it up int the web and the
    general opinion seemd to be that it's not possible, header cannot change the
    target, but I'm not 100% sure. The real question is, could you not open the
    page in another frame originally. Put the target in the link or the form you
    are using if it's possible.

    --
    SETI Home - Donate your cpu's idle time to science.
    Further reading at <http://setiweb.ssl.berkeley.edu/>

    Soulman <com>


    Kimmo Guest

  3. #3

    Default Re: HEADER( ) query

    On 2005-08-01 17-57-20 Kimmo Laine <com>
    wrote: 
    >
    > I don't know if it's doable, I tried to look it up int the web and the
    > general opinion seemd to be that it's not possible, header cannot change the
    > target, but I'm not 100% sure.[/ref]
    HTTP does not know about HTML in general or about frames in specific. It's
    just impossible to redirect into another frame.
    Doesn't make any sense, either... You load one frame and it opens in
    another... what happens to the frame in which the page was about to load in
    originally?

    HTH,
    Simon
    --
    Simon Stienen <http://slashlife.org/>
    "What you do in this world is a matter of no consequence,
    The question is, what can you make people believe that you have done."
    /Sherlock Holmes in A Study in Scarlet by Sir Arthur Conan Doyle/
    Simon Guest

Similar Threads

  1. Dumb Mail::Header question: getting the header
    By Bernie in forum PERL Modules
    Replies: 2
    Last Post: December 4th, 09:35 PM
  2. Query regarding Soap Header
    By indrajeetp@gmail.com in forum ASP.NET Web Services
    Replies: 0
    Last Post: July 5th, 01:36 PM
  3. Query with Header & Detail
    By Chris White in forum ASP Database
    Replies: 2
    Last Post: July 27th, 01:16 PM
  4. Replies: 5
    Last Post: February 4th, 10:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139