Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37932

Re: adding "onsubmit" to a form

$
0
0
by Abdul Bashet.  

In some case I like not to use mform. So I can create my form by using html_writer() like below:


$content ='';

$content .= ''//other elemnt of this form


        $content .= html_writer::empty_tag('input',array('type'=>'button', 'name'=>'Upload', 'value'=>'Upload', 'onclick'=>MyFunction()));
       


Viewing all articles
Browse latest Browse all 37932

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>