ShareThis

Wednesday, September 26, 2012

[PHP] See if checkbox is checked in form post processing

Checking to see if a textbox is checked (Regardless of "value" attribute) is as simple as this:


if ( isset($_POST['mycheckbox']) )
{
   // checkbox was checked
}
else
{
  // checkbox was not checked
}

0 comments:

Post a Comment