Directing server php return page

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


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2004
Don
 
Posts: n/a
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==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Reply With Quote
  #2 (permalink)  
Old 10-22-2004
Steve evetS
 
Posts: n/a
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==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
> ---= East/West-Coast Server Farms - Total Privacy via Encryption =---

Reply With Quote
  #3 (permalink)  
Old 10-22-2004
Don
 
Posts: n/a
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==----
>> 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 =---
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0