Hello,
I have a link that opens a popup which contains a form.. When this form is submitted i want the action to occur in the original window. I know there are loads of scripts on the net for this, but somehow none of them seem to work for me, and I can't figure out what I'm doing wrong. Currently, the popup opens up and closes, but the script I am calling on submit doesn't execute (well it does, but this script doesn't know that the submit button was hit => $_REQUEST['button name'] is empty)
The code:
<FORM action="mod_options.php" enctype="application/x-www-form-urlencoded" method=POST onsubmit="window.opener.document.location = 'mod_options.php'; window.close(); return false;" >
Please enter a description of your modifications here:</br></br>
<TEXTAREA align= 'center' style="width: 30%;height: 35px;text-align: left;" name='comment'></TEXTAREA></br></br>
<INPUT type='submit' name='modoptions' value='Commit' />
</FORM>
As I said earlier, once I click on 'Commit', the popup closes, and mod_options.php is loaded in the original window, but this script doesn't know that the commit button was hit since $_REQUEST['modoptions'] is empty.
Any help would be appreciated. Thank you.
Jawad.
Form action in opener on submit
Moderator: General Moderators