title: how to keep value in a listbox in PHP?
body: <p>I got a listbox in my php page that generate from another listbox, the code is as follows</p>
  
  <pre><code>&lt;?php $myArray1 = $_POST['countryRF'];?&gt;
                      &lt;select name='countryRF[]' id='countryRF' size='10' multiple style='width:180px' class='selfont'&gt;
                      &lt;?php
                      foreach($myArray1 as $value){ // Loop through each element
                            print "&lt;option value=\"".$value."\"&gt;".$value."&lt;/option&gt;";
                      }
                      ?&gt;
                      &lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>While refreshing the form listbox get empty, how can I keep added values even after form reload ?</p>
  
  <p><strong>Is it possible to keep the mysql result table stable even after form reloading by session ? If so please give me a help ?</strong></p>