title: Wordpress plugin how to call a function via a front end page form submit
body: <p>i have a function in plugin that inserts values in database, i want this function to be called when i submit a form on the front end page. how would i do it ?</p>
  <p>i have no idea what to do
  this is the function i want to call now i don't know what else to do</p>
  <pre><code>function jal_install_data() {
      global $wpdb;
      
      $welcome_name = 'Mr. WordPress';
      $welcome_text = 'Congratulations, you just completed the installation!';
      
      $table_name = $wpdb-&gt;prefix . 'dbquestions';
      
      $wpdb-&gt;insert( 
          $table_name, 
          array( 
              'time' =&gt; current_time( 'mysql' ), 
              'name' =&gt; $welcome_name, 
              'text' =&gt; $welcome_text, 
          ) 
      );
  }
  </code></pre>
  <p>i am not using a form on front end, rather i m using div classes, the class name is questions
  this is the button on which i want to call that function</p>
  <pre><code>&lt;input type=&quot;button&quot; id='next' value=&quot;Next&quot; onlick=&quot;sum_values()&quot;&gt;
  </code></pre>