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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.