PHP; Submit Button Outside IFrame

Have a CommaCheckboxes form with submit button.

Because of the number of checkboxes, we need to set the form within an IFrame but have the submit button outside the IFrame.

No problem constructing the IFrame but the submit button is of course not working.

<form id="form1" name="form1" method="post" action="r_aportmon.php">
                      <table width="100%" border="0"  class="KT_tngtable ">
                            <input name="button2" type="submit" class="headsubmitthin" id="button2" value="go with the selection" />
                          <td width="32%"><div class="a-10-b-3c63a2" id="labeltest">
                              <label >
                              <input name="aportID" class="a-10-b-3c63a2"  id="aportID" wdg:recordset="rst_airport" wdg:subtype="CommaCheckboxes" wdg:type="widget" wdg:displayfield="apname" wdg:valuefield="id_ap" wdg:groupby="4" />
                          </div><input name="datano" type="hidden" id="datano" value="5" /></td>
                        <tr >
                            <input name="button" type="submit" class="headsubmitthin" id="button" value="go with the selection" />

Open in new window

Who is Participating?
RoonaanConnect With a Mentor Commented:
Isn't it useful to use a <div style="overflow:auto"> instead of an iframe?

You can submit your form in the iframe from the parent form..

like this (on button click)


where [iframeName] is the name of iframe and [formName] is the name of form in iframe..


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.