title: <button type="button"> is not working. it don't post the data
body: <blockquote>
    <p>i'm trying to get the value from date-picker in post method. to select the date i need to select through button after selecting the date to get its value in post method when click on submit button it don't get any value. its value is empty.</p>
  </blockquote>
  
  <p><strong>view</strong></p>
  
  <pre><code>  &lt;div class="form-group"&gt;
              &lt;label&gt;Date range button:&lt;/label&gt;
                &lt;div class="input-group"&gt;
                  &lt;button type="button" class="btn btn-default pull-right" name="jamil" id="daterange-btn"&gt;
                    &lt;span&gt;
                      &lt;i class="fa fa-calendar"&gt;&lt;/i&gt; Date range picker
                    &lt;/span&gt;
                      &lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;
                  &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;
  &lt;input type="submit" name="show" id="show"  class="btn btn-primary" value="show"&gt;
  </code></pre>
  
  <p><strong>controller</strong></p>
  
  <pre><code>if($this-&gt;input-&gt;post("show")){
  $jam=$this-&gt;input-&gt;post("jamil");
  echo($jam); }
  </code></pre>