title: popup refresh main div main page
body: <p>I begin in php, ajax, javascript. I try to do a formulaire that when i click on a button, it open a popup windows. This popup windows content a new formulaire and when i submit this new formulaire i want that a div in the parent web page get the result of the popup submitting.
  I had the first script : test.php</p>
  <pre><code>&lt;?php
  session_start();
  ?&gt;
  &lt;script type=&quot;text/javascript&quot;src=&quot;http://code.jquery.com/jquery-1.12.3.js&quot;&gt;&lt;/script&gt;
  
  &lt;script type=&quot;text/javascript&quot;&gt;
      function actualise_div() {
          $(document).ready(function() {$('#div_a_actualiser').load('choix.equipe3.php');});  }
  &lt;/script&gt;
  
      &lt;h3&gt;Actualiser un &quot;DIV&quot; avec JQuery &lt;/h3&gt;
      &lt;INPUT TYPE=&quot;BUTTON&quot; OnClick=&quot;actualise_div()&quot; VALUE=&quot;Equipe&quot;&gt;
      
      &lt;div id=&quot;div_a_actualiser&quot; style=&quot;background:white; color:blue; width:50px; height:50px; font-size:25px;&quot;&gt;
          &lt;?php
          // affichage d'une valeur aléatoire pour voir l'effet d'actualisation
              echo rand(10,100).&quot;&lt;br&gt;&quot;;
              //echo &quot;Session Nanou&quot;.$_SESSION['nanou'];
          ?&gt;
      &lt;/div&gt;
  </code></pre>
  <p>That call the choix.equipe3.php :</p>
  <pre><code>&lt;?php
  session_start();
  echo &quot;toto&quot;;
  ?&gt;
  &lt;script&gt;
  window.open('choix.equipe4.php', 'popup','menubar=no, status=no, scrollbars=yes, menubar=no, width=600, height=800')
  &lt;/script&gt;
  </code></pre>
  <p>And then the third script chois.equipe4.php</p>
  <pre><code>&lt;?php
  session_start();
  include(&quot;connect2db.inc.php&quot;);
  
  @$rattachement=$_GET['rattachement'];
  
  echo &quot;rattachement:&quot;.$rattachement.&quot;&lt;br&gt;&quot;;
  
  if (!empty($_POST['btnSoumettre']))
  { $_SESSION['id_equipe']=$_POST[&quot;radiopack&quot;];
    echo &quot;Equipe:&quot;.$_SESSION['id_equipe'].&quot;&lt;br&gt;&quot;; 
    echo &quot;Toto&quot;;
    ?&gt;
    &lt;script&gt;
  window.close();
  &lt;/script&gt;
  &lt;?php
  }
  echo &quot;&lt;form name=\&quot;go\&quot; enctype=\&quot;multipart/form-data\&quot; method=\&quot;post\&quot; action=\&quot;&quot;.$_SERVER['PHP_SELF'].&quot;\&quot;&gt;&quot;;
  ?&gt;
  &lt;label for=&quot;packdebian&quot;&gt;&lt;input id=packdebian&quot; type=&quot;radio&quot; name=&quot;radiopack&quot; value=&quot;3&quot; required=&quot;&quot;&gt; Debian&lt;/label&gt;&lt;br&gt;
  &lt;label for=&quot;packubuntu&quot;&gt;&lt;input id=packubuntu&quot; type=&quot;radio&quot; name=&quot;radiopack&quot; value=&quot;4&quot; required=&quot;&quot;&gt; Ubuntu&lt;/label&gt;&lt;br&gt;
  
  &lt;input type=&quot;submit&quot; name=&quot;btnSoumettre&quot; value=&quot;Soumettre&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;btnAnnuler&quot; value=&quot;Annuler&quot; formnovalidate&gt;
  
  &lt;?php
  echo &quot;&lt;/form&gt;&quot;;
  ?&gt;
  </code></pre>
  <p>The problem is that when i submit the popup the div in the main page is no actualise.</p>
  <p>Thanks for your help and sorry for my bad english.</p>