title: Store the drop down selected value in a SESSION variable
body: <p>Im getting a set of values from the database to show in a drop down list. Once the user selected an item from the drop down list the selected item should be assigned to a SESSION variable. I tried this but yet it is not working. Please smeone help me to sort it out. </p>
  
  <pre><code>&lt;select id="FormNameSelecting" style="position:absolute; width:300px; top:50px; left:200px; "&gt;&lt;option&gt;&lt;/option&gt;
  &lt;?php
  
      $result = mysqli_query($con,"SELECT * FROM Form");
      while($row = mysqli_fetch_array($result)){      
      echo "&lt;option  value='$row[Form_ID]'&gt;$row[Form_Name]&lt;/option&gt;";
      echo 
      }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>So I need to store these values receive from $row[Form_ID] and $row[Form_Name] in 2 session variables named $_SESSION['Form_ID'] and $_SESSION['Form_Name']; Could someone explain me how I can assign the selected item's values to these two session variables.</p>