Skip to content

Instantly share code, notes, and snippets.

@demaisj
Last active December 21, 2015 15:38
Show Gist options
  • Save demaisj/6327602 to your computer and use it in GitHub Desktop.
Save demaisj/6327602 to your computer and use it in GitHub Desktop.
PHP : Check if checkbox is checked
<?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