title: How to get the selected dropdown value on submit in Laravel?
body: <p>In Laravel, I am trying to get the value of selected drop-down value and send it to another controller. And by using that drop-down value below values need to be changed by fetching the data from the database.</p>
  
  <p>Below is the code I have tried.</p>
  
  <pre><code>&lt;form action="{{{ url("/getDetailsBynumber/$_POST['number']") }}}" method="post"&gt;
  &lt;select name="number" id="number"&gt;
      &lt;option selected="selected"&gt;Select number id&lt;/option&gt;
      &lt;?php     
      $numberArray = json_decode($number_id, true);       
  
      for ($i = 0 ; $i&lt;=$number_count ; $i++) {
      ?&gt;
      &lt;option value="&lt;?php echo $numberArray[$i]["number_value"] ?&gt;"&gt;&lt;?php echo $numberArray[$i]["number_value"]; ?&gt;&lt;/option&gt;
      &lt;?php
      }
      ?&gt;
  &lt;/select&gt;
  &lt;input type="submit" value="Submit"&gt;
  </code></pre>
  
  <p></p>