Question: how to get the value of selected checkbox in php?
Answer: To get value of a checked checkbox : php if (isset($_POST['gender'])){ echo $_POST['gender']; // Displays value of checked checkbox. }