<?php
//shortcode [my_table id=""]
function custom_table_shortcode($atts)
{
extract(shortcode_atts(array(
'id'=>''
), $atts));
ob_start();
global $wpdb;
if(isset($_POST['insert']))
{
$name=$_POST['name'];
$address=$_POST['address'];
$rollno=$_POST['roolnp'];
//here get and send those details to mail
echo "form saved";
}
?>
<form id="twform" action="#" method="post">
<table id="twtable">
<tbody><tr>
<td>
<label>Name</label></td>
<td> <input type="text" value="" name="name"><br></td>
</tr>