Last active
December 21, 2015 15:38
-
-
Save demaisj/6327602 to your computer and use it in GitHub Desktop.
PHP : Check if checkbox is checked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// <input type="checkbox" name="checkbox" value="1" /> | |
$checked = isset($_GET['checkbox']) && $_GET['checkbox'] ? true : false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment