Jump to content

Iframe Submit Outside


FrankBro
 Share

Recommended Posts

I need to submit the form of inside iframe.php which is inside page.php. However, the whole php form processing is in page.php so i'd need the submit button to be outside, in page.php. They are both on the same server so it shouldnt be a problem but i can't figure it out.Let's say the form is named myForm and the iframe named iframe.Anyone could help ?

Link to comment
Share on other sites

You can't have a submit button outside a frame submit a form inside a frame (at least not without Javascript), but you can tell the form to submit to another frame. You can use the target attribute to tell the form where to submit to. e.g.:<form target="_top" ...that will submit it to the parent page of the iframe.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...