execute_kw( $db,//database name $uid, // user id $password, // user password "student", // model / table name "create", // rpc function array( array( // data to insert "name"=>$name, "birth_date"=>"2000-08-20", "number"=>6, "fees"=>400, "is_register"=>True, ) ) ); // header('Location: insert.php'); echo json_encode($id); // print user that created ?>