title: How to echo selected value of dropdown in php?
body: <p>I want to echo selected value from dropdown. But it always give me the output: Default</p>
  
  <p>Kindly check what I am doing:</p>
  
  <pre><code>   &lt;div&gt;
      &lt;select id="orderStatus" name="orderStatus"&gt;
      &lt;option value="0"&gt;&lt;/option&gt;
      &lt;option value="Available"&gt;Available&lt;/option&gt;
      &lt;option value="Arranging Product"&gt;Arranging Product&lt;/option&gt;
      &lt;option value="Awaiting Fulfillment"&gt;Awaiting Fulfillment&lt;/option&gt;
      &lt;option value="Awaiting Payment"&gt;Awaiting Payment&lt;/option&gt;
      &lt;option value="Awaiting Pickup"&gt;Awaiting Pickup&lt;/option&gt;
      &lt;option value="Awaiting Shipment"&gt;Awaiting Shipment&lt;/option&gt;
      &lt;/select&gt;
  
       // I think here is the problem when I click button it forgets selected index value    
        &lt;a href="order.php"  class="btn btn-large"&gt;Update&lt;/a&gt;
  
     &lt;/div&gt;
  </code></pre>
  
  <p>Php Code:</p>
  
  <pre><code>&lt;?php
    $draft = isset($_GET['orderStatus'])? $_GET['orderStatus'] : 'DEFAULT';
    echo $draft;
  ?&gt;
  </code></pre>
  
  <p>When I click on update button then in the output I always get DEFAULT. I think when I click on the update button it forgets the selected index value.</p>
  
  <p>Kindly suggest what I am doing wrong.</p>