How to make checkboxes from taxonomy terms?

$taxonomy     = 'training_cats';
 $orderby      = 'name'; 
 $show_count   = 0;      // 1 for yes, 0 for no
 $pad_counts   = 0;      // 1 for yes, 0 for no
 $hierarchical = 0;      // 1 for yes, 0 for no
 $title="";
 $empty        = 0;
 $args = array(
  'name'     => $taxonomy,
  'orderby'      => $orderby,
  'show_count'   => $show_count,
  'pad_counts'   => $pad_counts,
  'hierarchical' => $hierarchical,
  'title_li'     => $title,
  'hide_empty'   => $empty
);
$cats = get_taxonomies($args);
foreach ( $cats as $cats2 ) {
 echo '<input type="checkbox" name="checkbox_id" value="'.$cats2->name.'" />';
 echo $cats2-name;
}

Not tested but should work, change the taxonomy name etc 🙂

Edit: Try the new code, using get_taxonomies (the code didn’t know where to pull data from)

Edit2: Changed taxonomy to name: