RE: [PHP] Redirect to a different frame...
| From: | Dan Joseph | Date: | Thu, 03 Jul 2003 15:41:52 +0000 |
| Subject: | RE: [PHP] Redirect to a different frame... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153895@lists.php.net to get a copy of this message | ||
Hi,
> I was wondering if there is a way to use the header function in php to
> redirect the browser's output to a different frame.
>
> Specifically, I have a form on frame A which has two submit buttons. I
> would like one to submit the data in the form to a page which will load
> in frame A, and the other to submit the data to the same page which will
> load in frame B.
in your <form> tag, you can put target=framename, example:
<form method=post name=framename action=file.php target=framethree>
Anything submitted from that frame will target the specified frame. No
fancy PHP needed, unless you want to make the target dynamic.
-Dan Joseph