...

View Full Version : Open php as a popup



ammu_sridhar
05-14-2009, 03:14 PM
Hello all, I have a html form where I take some input with method="POST" action="insertEmp.php".

User enters all the input in html and when clicks "Insert" button, I should pass all the information (variables) from this html page to "insertEmp.php" where I have my inert SQL. After execution of INSERT sql, a pop-up window should come showing the result "Details Inserted Successfully" or "Details Failed to Insert". Most imortant thing is that I should not navigate away from my present html page. Is there any help please....????


I tried in my html, <input type="submit" value="Insert" name="B1" style="font-weight: 700" >. But I am navigated to "insertEmp.php" from my current page.

Then I tried <input type="button" value="Insert" name="B1" style="font-weight: 700" onClick="window.open ('/issuelist/insertEmp.php', '', 'width=1000,height=100,left=100,top=250,resizable=yes,scrollbars=yes');" >. In this case, a popup window is coming but all my input in the html page is not passed to "insertEmp.php". Any help please....

Thanks
Sri

beedie
05-14-2009, 03:41 PM
this sounds like an ajax question.
It can be done very easily with ajax.
No code in my head right now but try that forum



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum