title: How to get the selected value from dropdown list in PHP?
body: <p>I am not able to retrieve the selected dropdown value to the PHP variable</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;form action="#" method="post"&gt;
  &lt;select name="Color"&gt;
  &lt;option value="Red"&gt;Red&lt;/option&gt;
  &lt;option value="Green"&gt;Green&lt;/option&gt;
  &lt;option value="Blue"&gt;Blue&lt;/option&gt;
  &lt;option value="Pink"&gt;Pink&lt;/option&gt;
  &lt;option value="Yellow"&gt;Yellow&lt;/option&gt;
  &lt;/select&gt;    
  &lt;/form&gt;
  &lt;?php
  $selected_val = $_POST['Color'];  // Storing Selected Value In Variable
  echo "You have selected :" .$selected_val;  // Displaying Selected Value 
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Please help.</p>