This is a discussion on Directing server php return page within the alt.comp.lang.php forums, part of the PHP Programming Forums category; How do I have the server-side php script open up a new client window, rather than having it return ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- |
|
|||
|
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==---- > http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups > ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- |
|
|||
|
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==---- >> http://www.newsfeeds.com 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==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- |