title: adding a class to form_submit in PHP Codeigniter
body: <p>I'm trying to add a class to form_submit  in PHP Codeigniter; Im doing with the following code:</p>
  
  <pre><code>        $attributes1=array(
              'class'=&gt;'btn btn-danger',
          );
          echo form_submit('loginSubmit', 'Login',$attributes1['class']);
  </code></pre>
  
  <p>But the rendered code in HTML is as following:</p>
  
  <pre><code>&lt;input type="submit" name="loginSubmit" value="Login" btn="" btn-danger=""&gt;
  </code></pre>
  
  <p>could you please let me know who I can the class to my form_submit?</p>
  
  <p>Also If it is not clear please let me know which part is ambiguous so I will provide more clarification</p>
  
  <p>Many thanks</p>