ammu_sridhar Posted May 14, 2009 Share Posted May 14, 2009 Hello, I have a html form with <form method="POST" action="updateIssue.php" > When user selects a row and clicks "UPDATE" button, I want to pass few values from current html page to "updateIssue.php" where I have my update sql. After successful update, a popup window should come showing the result. For this, I am trying the below method. <input type="button" value="Update" name="B1" style="font-weight: 700" onClick="window.open ('/issuelist/updateIssue.php', 'Issue Update', 'width=1000,height=100,left=100,top=250,resizable=yes,scrollbars=yes');" > Problem with this method is that my variables are not passed to "updateIssue.php". Then I tried <input type="submit" value="Update" name="B1" style="font-weight: 700" onClick="window.open ('/issuelist/updateIssue.php', 'Issue Update', 'width=1000,height=100,left=100,top=250,resizable=yes,scrollbars=yes');" > In this case, I am navigated away from my current page to "updateIssue.php". Any help on how to pass variables to "updateIssue.php", do the update and throw a pop-up window displaying the result, with out navigating away from my current html page. Thanks Sri Quote Link to comment https://forums.phpfreaks.com/topic/158111-passing-variables-to-new-window-in-html-and-php/ Share on other sites More sharing options...
Ken2k7 Posted May 14, 2009 Share Posted May 14, 2009 Take out the onclick part in your second one. Quote Link to comment https://forums.phpfreaks.com/topic/158111-passing-variables-to-new-window-in-html-and-php/#findComment-834419 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.