title: Wordpress form submission is shows error. how to solve that?
body: <p>Hi i am developing a WordPress plugin.. this is my shortcode.php file.</p>
  
  <p>It shows form correctly. but form submission is not working.. after form submission it shows page not found error.</p>
  
  <pre><code> &lt;?php
      //shortcode [my_table id=""]
      function custom_table_shortcode($atts)
      {
          extract(shortcode_atts(array(
              'id'=&gt;''       
          ), $atts));
       ob_start();
       global $wpdb;  
       if(isset($_POST['insert'])) 
     {
          $from="doNotReply@widdle.com";
          $check1=$_POST['check1'];
          $check2=$_POST['check2'];
          $check3=$_POST['check3'];
  
          mail("talon77email@talon77.com", "Form Submission Notice", $check1 , "From: $from");
          print "Your form has been submitted";
      }
  
  
  
      ?&gt;
  &lt;form id="twform" action="#" method="post"&gt;
  &lt;input id="check1" type="checkbox" name="check1" /&gt;Print Design
  &lt;input id="check2" type="checkbox" name="check2"/&gt;Logo Design
  &lt;input id="check3" type="checkbox" name="check3"/&gt;Web Design
  &lt;input type="submit" value="Save" name="insert"&gt; 
  &lt;/form&gt;
      &lt;?php return ob_get_clean();
      }
      ?&gt;
  </code></pre>
  
  <p>I dont know how to solve that problem.. please any one help me..</p>
  
  <p>Thanks in advance.</p>