For a custom post type, I'm pulling in a list of another custom post types that I need to select for saving ...
<input type="checkbox" name="32"> My CPT <br>
<input type="checkbox" name="41"> My CPT 2 <br>
<input type="checkbox" name="42"> My CPT 3 <br>
<input type="checkbox" name="43"> My CPT 4
It's easy enough to save a single input, but how do I save multiple checkboxes?
update_post_meta( $post->ID, 'mycpt', $_POST['myinput'] );