get and echo the value of unchecked checkboxes php

How to get and echo the value of unchecked checkbox
checkboxes.php

[php]<?php
if(!isset($_POST[‘check’])){
echo $_POST[‘check’];}
?>[/php]

[code]

[/code]

i m facing following error

Notice: Undefined index: check in C:\xampp\htdocs\site\checkboxes.php

Unchecked boxes will not pass to $_POST

then please give me some trick to get the value becoz its important to me to get the value which check box is unchecked infact i m getting data dynamically from db i assign the check boxs the primary keys. on the base of that primary key i want to know that which one is check and which is not. my basic functions r depends on these both values so plz if any body can help me by some trick or any other way

Simple. You know the key name from your form so if it’s not submitted in $_POST then it’s not checked.

can u do some line for me to explain plz

Sponsor our Newsletter | Privacy Policy | Terms of Service