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