[Solved] Getting the result of a checkbox in php [closed]


if(isset($_POST['new'])){ } 

Will tell you if it was checked. If you want to be able to check the value as well you need to give the input a value.

<input type="checkbox" name="new" value="someval" style="float:right" />
<?php
if(isset($_POST['new']) && $_POST['new'] == 'someval'){ } 

solved Getting the result of a checkbox in php [closed]