Getting name of check boxes even if some of them are null |
![]() ![]() |
Getting name of check boxes even if some of them are null |
Nov 6 2009, 09:50 AM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 7,881 Joined: 23-November 08 Member No.: 6,521 |
hi
i have a form. my form has a lot of check boxes. by ever refresh new check boxes will be create. i don have name of check boxes and their values. i use of : PHP Code: foreach ($_POST as $key => $value) { echo "$key : $value"; echo "<br>"; } in action page to getting name of checkboxes and their values Problem is this script getting names and values only checkboxes that cheked. i need to getting names of all of checkboxes from form page even if their values is empty (they are not checked). is there any way? |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 01:16 PM |