PHP Web Form-Sanitize checkboxes and radio buttons

Is it possible to attack (through injections or whatever) the checkboxes and radio buttons inputs on a web form, as well as it’s done with the input and email fields? If it’s so, how can we avoid it?

I’m working with PHP. I read that yes, is possible to do it through the dev console, just changing the TYPE of input, replacing the “checkbox” and “radio” for “text”, so the hacker writes <input type=“text”> .

Any ideas, suggestions, please.