Re: Single HTML form post affecting multiple HTML frames/PHP scripts
| From: | Richard Lewis | Date: | Wed, 14 Apr 2004 09:59:43 +0000 |
| Subject: | Re: Single HTML form post affecting multiple HTML frames/PHP scripts | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183299@lists.php.net to get a copy of this message | ||
Tom Rogers wrote:
> Hi,
>
> Wednesday, April 14, 2004, 6:57:53 PM, you wrote:
> RL> So is there a way of making a single form post affect two scripts in
> RL> different HTML frames? Or a way of posting values from the second
> frame to RL> the third automatically (i.e. without the user clicking an
> HTML 'submit' RL> button)?
>
> RL> Cheers,
> RL> Richard
>
>
> Post your details to the main page that defines the frames and get
> that page to pass the new details on to the sub pages. that way all frames
> will be regenerated after the post operation.
>
OK, but the only way I can think to do this is by appending the details to
the URLs:
<frame ... src="file.php?id=<? echo $_POST['id']; ?>&..." />
which will make them available with $_GET. All my coding so far has assumed
that data will be available in $_POST. Is there any way of passing data in
$_POST automatically?
R.