note 71032 rejected from faq.html by bobby

From: Date: Thu, 09 Nov 2006 15:33:28 +0000
Subject: note 71032 rejected from faq.html by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119558@lists.php.net to get a copy of this message
Note Submitter: emilj at pyton dot sk ---- i have form like this: <head> <title>Demo CHECKBOX</title> </head> <body> <form method="post" action="status.php"> <input type="checkbox" name="chb_a"> <input type="checkbox" name="chb_b"> <input type="checkbox" name="chb_c"> <!-- HERE IS VARIOUS NUMBER OF CHECKBOXES WITH VARIOUS NAMES. CHECKBOX NAME IS GET FROM RECORD IN TABLE, FROM DATABASE. "CHECKED"/"NOT CHECKED" IS GET FROM DATABASE TOO. --> <input type="submit" value="SUBMIT"> </form> </body> </html> when i submit form, i need update every records with checkbox names. I CANNOT FOUND/READ "NOT CHECKED" CHECKBOX NAMES. I don't know which names i have to update to false, because it is not in $_POST array. I cannot compare checkbox names because i don't have checkbox names from previous select, previous form. Checkbox names is various, depend on user select. status.php: <head> <title></title> </head> <body> <pre> <?php print_r( $_POST ); ?> </pre> </body> </html>

« previous php.notes (#119558) next »