title: Two action forms and two submit buttons, how to keep the values?
body: <p>I have 2 action forms in the page and 2 submit buttons.</p>
  
  <p>1 is zoom-level</p>
  
  <p>1 is refresh rate in seconds</p>
  
  <p>When I hit submit of zoom, the refresh rate is reset
  When I hit submit of refresh rate, the zoom level is reset</p>
  
  <p>What to do to keep the value of the other when one dropdown is set to a certain value?</p>
  
  <p>I think this is a common problem where noobs struggle with, so it would be nice to have some good explanation from experts with nice guidance here...</p>
  
  <p>code is:</p>
  
  <pre><code>&lt;?php
          $submittedValue = "";
          $value0 = 1;
          $value1 = 1.2;
          $value2 = 1.5;
          $value3 = 2;
          if (isset($_POST["FruitList"])) {
              $submittedValue = $_POST["FruitList"];
          }
          ?&gt;
          &lt;form action="example3b2vandaag.php" name="fruits" method="post"&gt;
          &lt;select project="FruitList" id="FruitList" name="FruitList"&gt;
           &lt;option value = "&lt;?php echo $value0; ?&gt;"&lt;?php echo ($value0 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo "off"; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value1; ?&gt;"&lt;?php echo ($value1 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value1; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value2; ?&gt;"&lt;?php echo ($value2 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value2; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value3; ?&gt;"&lt;?php echo ($value3 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value3; ?&gt;&lt;/option&gt;
          &lt;/select&gt;
          &lt;input type="submit" name="submit" id="submit" value="Set zoom level" /&gt;
          &lt;/form&gt;
  
  
  
  
  
  
          &lt;?php
          $submittedValue = "";
          $value0 = 1000;
          $value1 = 20000;
          $value2 = 30000;
          $value3 = 90000;
          if (isset($_POST["FruitList2"])) {
              $submittedValue = $_POST["FruitList2"];
          }
          ?&gt;
           &lt;form action="example3b2vandaag.php" name="fruits2" method="post"&gt;
          &lt;select project="FruitList2" id="FruitList2" name="FruitList2"&gt;
           &lt;option value = "&lt;?php echo $value0; ?&gt;"&lt;?php echo ($value0 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value0; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value1; ?&gt;"&lt;?php echo ($value1 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value1; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value2; ?&gt;"&lt;?php echo ($value2 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value2; ?&gt;&lt;/option&gt;
           &lt;option value = "&lt;?php echo $value3; ?&gt;"&lt;?php echo ($value3 == $submittedValue)?" SELECTED":""?&gt;&gt;&lt;?php echo $value3; ?&gt;&lt;/option&gt;
          &lt;/select&gt;
          &lt;input type="submit" name="submit" id="submit" value="Set refresh milliseconds" /&gt;
          &lt;/form&gt;
  </code></pre>