Jump to content

Passing variables to new window in HTML and PHP


ammu_sridhar

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.