title: How to convert onsubmit to form_open
body: <p>My code is like this:</p>
  
  <pre><code>&lt;form action="http://&lt;?php echo site_url();?&gt;/loader/task1" onsubmit="return checkDifferance();" method="post"&gt;
  </code></pre>
  
  <p>How can I convert this onsubmit to form_open? How to improve the code below?</p>
  
  <pre><code>&lt;?php echo form_open('loder/task1');?&gt;
  </code></pre>