How to read if a checkbox is checked in PHP?
Learn about isset which is a built in "function" that can be used in if statements to tell if a variable has been used or set
isset
Example:
if(isset($_POST["testvariabel"])) { echo "testvariabel has been set!"; }