IPB
Your Ad Here


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Getting name of check boxes even if some of them are null
Misha Singh
post 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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 01:16 PM
Your Ad Here