title: How to validate button type submit in ci?
body: <pre><code>&lt;input type = "submit' name="submit" value="Log In"&gt;
  &lt;button type="submit" name="submit"&gt;Log in &lt;/button&gt;
  </code></pre>
  
  <p>For input type submit, I write if ($this->input->post('submit') and then validation rules in controller. But it is not working with button type="submit". Is there any other code for button type??</p>