SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    625
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    PHP Variables value in Javascript Popup

    hi all

    i m having trouble in getting values of my php variables in popup window.

    Onclick of a Button the Popup window appears but the query results are not shown in popup window because i cant get my php variables values that are in parent page

    Code:
    <script type="text/javascript">
    <!--
    function myPopup2() {
    window.open( "results.php", "myWindow", 
    "status = 1, height = 300, width = 300, resizable = 0" )
    }
    //-->
    </script>
    My php code works fine in general without popup window

    vineet

  2. #2
    SitePoint Evangelist stonedeft's Avatar
    Join Date
    Aug 2009
    Posts
    590
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are not passing any query results to that javascript function
    Don't Panic


Bookmarks

Posting Permissions

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