I use wpdb but it does not work perfectly. But if I do not use the form data, it works

if (isset ($ _ POST[‘submit’])) {
global $ wpdb;

$ table_name = $ wpdb-> prefix. "Table_booky";
$ wpdb-> insert ($ table_name, array (
"Name" => $ _POST[‘name’],
"dep" => $ _POST[‘age’];
"age" => $ _POST[‘dep’];
));

}
?>
"method =" POST ">