S
soup_or_power
Hi
I have a form that opens a pop-up window. The pop up window
has a form like this:
<FORM method="POST" ENCTYPE="multipart/form-data">
<INPUT class="txt" type=file name="dn_file">
<INPUT class="btn" type=submit name="upload" value="UPLOAD">
<INPUT type=hidden name="upload_popup">
[$ if $fdat{upload} $]
<TEXTAREA cols=100 rows=10> [+ $upstr +] </TEXTAREA>
[- delete $fdat{upload} -]
<INPUT class="btn" type="button" name="Process" value="PROCESS"
onClick="this.form.target=window.opener;this.form.submit()">
<INPUT class="btn" type="button" name="Cancel" value="Cancel"
onclick="window.close()">
[$ endif $]
</FORM>
When I click on the Process button I expect the form in the main window
to be submitted. But what I see is that the pop-up's form is
submitted.
Can anyone help me?
Thank you
I have a form that opens a pop-up window. The pop up window
has a form like this:
<FORM method="POST" ENCTYPE="multipart/form-data">
<INPUT class="txt" type=file name="dn_file">
<INPUT class="btn" type=submit name="upload" value="UPLOAD">
<INPUT type=hidden name="upload_popup">
[$ if $fdat{upload} $]
<TEXTAREA cols=100 rows=10> [+ $upstr +] </TEXTAREA>
[- delete $fdat{upload} -]
<INPUT class="btn" type="button" name="Process" value="PROCESS"
onClick="this.form.target=window.opener;this.form.submit()">
<INPUT class="btn" type="button" name="Cancel" value="Cancel"
onclick="window.close()">
[$ endif $]
</FORM>
When I click on the Process button I expect the form in the main window
to be submitted. But what I see is that the pop-up's form is
submitted.
Can anyone help me?
Thank you