FrankBro Posted September 2, 2009 Share Posted September 2, 2009 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 More sharing options...
justsomeguy Posted September 2, 2009 Share Posted September 2, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.