Multiple forms in one iframe container

Multiple forms in one iframe container

am 26.07.2007 09:25:47 von draw

I have one container page "container.htm"
In this container I have multiple iframes "iframepage1.htm",
"iframepage2.htm", etc. and one button firing a js script to submit.
In every iframe page I have multiple input fields.
In the container page I have one iframe page to display results
"'iframeresults.htm".
How can I send all the values of the input fields to one server page
"process.php" where calculations are done and the results are send to the
updated iframe result page?
Let's take a simple example:
in "iframepage1.htm" I put the value 5
in "iframepage2.htm", I put the value 2
with the submit button I will send both input values to the server page
"calc.php" where we calculate the result =10
This result is then send to the iframe result page "'iframeresults.htm" in
the container "container.htm"and is updated.
Can anyone help me the find a solution?

Re: Multiple forms in one iframe container

am 26.07.2007 12:11:36 von Hendri Kurniawan

draw wrote:
> I have one container page "container.htm"
> In this container I have multiple iframes "iframepage1.htm",
> "iframepage2.htm", etc. and one button firing a js script to submit.
> In every iframe page I have multiple input fields.
> In the container page I have one iframe page to display results
> "'iframeresults.htm".
> How can I send all the values of the input fields to one server page
> "process.php" where calculations are done and the results are send to the
> updated iframe result page?
> Let's take a simple example:
> in "iframepage1.htm" I put the value 5
> in "iframepage2.htm", I put the value 2
> with the submit button I will send both input values to the server page
> "calc.php" where we calculate the result =10
> This result is then send to the iframe result page "'iframeresults.htm" in
> the container "container.htm"and is updated.
> Can anyone help me the find a solution?
>
>

This sounds to be a bad design for a page (IMHO).
There might be reasons for you to use this sort of design,
and If you insist on using this sort of design, you might want to ask
question to
javascript group comp.lang.javascript


Hendri Kurniawan

Re: Multiple forms in one iframe container

am 11.08.2007 11:38:29 von emc2mmd2

I concur.
I's a poor design, regardless; each form from each page will go to
your processing PHP.
Now, and I haven't tried this, how do you plan to send it back to each
iFrame?
Don't think you can. Unless you write the processing within each
iFrame in php. And if so, then how do you connect the 2 iFrames
results? With another form? sending it to another php?

No can do, i'm afraid.
I'd jump right out of iFrames and right into echo this and echo
that... with vars $ inside.

Regards.