Directing server php return page

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Directing server php return page

    How do I have the server-side php script open up a new client window, rather than having it return
    to the client page that invoked the php script in the first place? I want to preserve the original
    client page. Or if I could do it, better yet, is there a way to have the php script return to the
    same window, but a new page, thereby preserving the original client page?

    Thanks for your help,
    Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Don Guest

  2. Similar Questions and Discussions

    1. Re-directing a page to a different address based on acriteria
      Hello All, I created an update page that once the user made the necessary changes and click the update button that record would drop-off from the...
    2. Directing Domains
      Hi, I have never used ASP in my life so I NEED HELP!!! I have heard it is possible to create an asp script that when someone connects to a web...
    3. Home page return
      I have my web page uploaded from 2002. I have two problems. #1. I have 6 pages and it works OK until I try and return to the home page with the...
    4. Re-directing outsiders to a universal URL
      What code is to be placed in a page so that visitors from a url outside of my domain will be automatically transferred to a universal start page (eg....
    5. Prevent 'Page has expired' when a client hits back to return to a search page
      I have a search page that I want to enable private caching so that when a user hits the back button they dont get the page has expired error. I...
  3. #2

    Default Re: Directing server php return page

    Don wrote:
    > How do I have the server-side php script open up a new client window, rather than having it return
    > to the client page that invoked the php script in the first place? I want to preserve the original
    > client page.
    This is usually achieved in the client side HMTL, so to produce that
    code in your PHP would be something like;

    echo '<a href="http://your.url.com" target="_blank">Link</a>' . "\n";

    Or if I could do it, better yet, is there a way to have the php script
    return to the
    > same window, but a new page, thereby preserving the original client page?
    Not entirely sure I know what your asking here. To have a form, for
    example, submit to itself and you return to the same page;

    echo '<form action="' . $_SERVER['PHP_SELF'] . '" name="formName">';

    and to retrieve values use;

    $_REQUEST['formElementValue'];

    Does this help??
    Steve
    >
    > Thanks for your help,
    > Don
    >
    >
    > ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    > [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    > ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Steve evetS Guest

  4. #3

    Default Re: Directing server php return page

    On Fri, 22 Oct 2004 18:25:45 +0100, Steve evetS <steve1401@yahoo.com> wrote:
    >Don wrote:
    >> How do I have the server-side php script open up a new client window, rather than having it return
    >> to the client page that invoked the php script in the first place? I want to preserve the original
    >> client page.
    >This is usually achieved in the client side HMTL, so to produce that
    >code in your PHP would be something like;
    >
    >echo '<a href="http://your.url.com" target="_blank">Link</a>' . "\n";
    >
    > Or if I could do it, better yet, is there a way to have the php script
    >return to the
    >> same window, but a new page, thereby preserving the original client page?
    >Not entirely sure I know what your asking here. To have a form, for
    >example, submit to itself and you return to the same page;
    >
    >echo '<form action="' . $_SERVER['PHP_SELF'] . '" name="formName">';
    >
    >and to retrieve values use;
    >
    >$_REQUEST['formElementValue'];
    >
    >Does this help??
    >Steve
    >>
    >> Thanks for your help,
    >> Don
    >>
    >>
    >> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    >> [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    >> ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Hi Steve,

    Thanks for your prompt response. I'm really having trouble with this one. I still want the PHP
    script to return it's own page, but I don't want to return it to the same client window that
    contained the page which invoked the PHP script in the first place. How does your first example do
    that? It looks to me like it will open up a new page (from a new URL), and not the return page from
    the PHP script.

    Thanks,
    Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Don Guest

Posting Permissions

  • You may not post new threads
  • You may 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