Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Thanked 0 Times in 0 Posts

    Open php as a popup

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


  • #2
    New Coder
    Join Date
    Mar 2008
    Thanked 0 Times in 0 Posts
    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


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts