hi i have a form which has a checkbox and i want to save the value of the checkbox into my database but when i click on the checkbox and save it it works fine and when i try to
If the checkbox is not checked, the value is not posted to the script. You must check if it is set before using it.
if(isset($_POST['active'])){ //do something if is } else{ //do something if not }