codeigniter - Pass data through form by onclick -


this should simple can't it.

i want pass particular field value controller function through onclick

by form submit

      <form action="<?php echo base_url();>data/pass" method="post">   <select  name="name1" id="name1" onclick="" class="m-wrap" >             <option selected="selected" disabled="disabled">select</option>              <option value="1">by year</option>                 </select>                       <form> 

please me.

change code this

<form action="<?php echo base_url();?>data/pass" method="post">     <select  name="name1" id="name1" onchange="this.form.submit()" class="m-wrap" >         <option selected="selected" disabled="disabled">select</option>         <option value="1">by year</option>             </select>                      <form> 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -