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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -