php - How to convert onsubmit to form_open -


my code this:

<form action="http://<?php echo site_url();?>/loader/task1" onsubmit="return checkdifferance();" method="post"> 

how can convert onsubmit form_open? how improve code below?

<?php echo form_open('loder/task1');?> 

try this

<?php echo form_open('loder/task1', array('onsubmit' => 'return checkdifferance();'));?> 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -