I have a php script in a form in one iframe….and i would like another iframe that displays the contents of the sql database to refresh when the form is submitted…what is a simple way to do that without javascript?
@crh3675Jun 27.2004 — #Then what you need to do is store the results in a session variable. Load your IFRAME that needs the results using the contents of your session variable. So, you can reload both the page and the IFRAME simultaniously while displaying your DB results in the IFRAME.
@DaiWelshJun 30.2004 — #Put some js in the page returned into the first iframe (the one with the form that is submitting) to reload the second iframe. Exact syntax depends on names/relationship between iframes but something like
parent.iframe2.location.reload()
should do.
If you try to reload the two iframes when the form initially submits then you can not be sure that the update will have taken effect.