Ask a Question related to PHP Development, Design and Development.
-
Cpt John W. Holmes #1
Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?
> Consider the following form in a HTML file:
>> ...> <input type=checkbox name="box" value=1>> <input type=checkbox name="box" value=2>> <input type=checkbox name="box" value=3>> <input type=checkbox name="box" value=4>> ...>change> Now I'm posting this form into a PHP script. The problem is I can't
prefered> that HTML file. Which means I can't modify the code above into PHP
> style:>> <input type=checkbox name="box[]" value=1>> <input type=checkbox name="box[]" value=2>> ...>> So, how can I get the correct values of the checkbox? $_REQUEST['box'] is> not an array and only contains the last value. Thanks!
Parse the value of $_SERVER['QUERY_STRING'] yourself and make the array.
---John Holmes...
Cpt John W. Holmes Guest
-
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
asp checkbox
Kerri, Do a search for the checkbox list object and how to databind it. It think that's what will work best for you. Sincerely, -- S.... -
Q: How to get the value of a checkbox of which name without '[]'?
Consider the following form in a HTML file: .... <input type=checkbox name="box" value=1> <input type=checkbox name="box" value=2> <input... -
<asp:checkbox>
Hi, I have a series of checkboxes on a web page. Based on what the user checks I write a record to a Database Table. I want to associate... -
DIV, CheckBox
Hello, I am populating a DIV with Checkboxes based on rows I get from a Table while dr.read() ..... mydiv.controls.add(etc...) .... other set... -
khan #2
Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?
i have also this prblem
khan Guest



Reply With Quote

