Multiple forms in one iframe container

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?
draw [ Do, 26 Juli 2007 09:25 ] [ ID #1779247 ]

Re: Multiple forms in one iframe container

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
Hendri Kurniawan [ Do, 26 Juli 2007 12:11 ] [ ID #1779249 ]

Re: Multiple forms in one iframe container

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.
emc2mmd2 [ Sa, 11 August 2007 11:38 ] [ ID #1792706 ]
PHP » alt.php » Multiple forms in one iframe container

Vorheriges Thema: if any one can post a general classified script from deltascript or
Nächstes Thema: Free Form Builder Utility with PHP back end