I am using wpdb but it not working perfectly.but if I dont use form data its work

While your question isn’t entirely clear on the issue you’re having, I’m guessing that it’s the way that you defined the elements of the array you were trying to insert.

You had a mix of commas and semicolons separating the elements.

I revised your code to correct that – and to aid readability of your code so you can see it, I pulled this out into a variable – $data_array.

<?php

if ( isset( $_POST['submit'] ) ) {
    global $wpdb;

    $table_name = $wpdb->prefix . "table_booky";

    $data_array = array(
        "Name" => $_POST['name'],
        "dep"  => $_POST['age'],  // Note the comma, and not semicolon
        "age"  => $_POST['dep'],  // Same here...
    );

    $wpdb->insert( $table_name, $data_array );

}
?>
<form class="" action="<?php home_url(); ?>" method="POST">


<input type="text" name="name" value="">
<input type="text" name="age" value="">
<input type="text" name="dep" value="">
<input type="submit" name="submit" value="submit">

</form>

Now, this doesn’t address other issues such as the fact that you are not sanitizing your input data. So you should look into that after you get your code working.