0
votes
1answer
47 views

pass an array of checkbox values to a Javascript string

What I want to happend with the following code is when a user checks multiple data centers and then selects a type of change it will automaticly refresh the description and Impact text area with a ...
0
votes
0answers
16 views

Add the checked items to an array and pass it to servlet

My checkbox items are coming from a query in jsp and want to pass the checkd items to a servlet. I tried using forms but i was not successful. So i want to add the checked items to an array and pass ...
3
votes
7answers
74 views

Loop a list of checkboxes that some probabbly are not checked in PHP

I have a HTML schema like this: Link: http://i.stack.imgur.com/9RRpx.jpg CheckBox names: Lunes column name = arrayLunes[] then, Martes column name = arrayMartes[], etc... First, I want to test ...
0
votes
0answers
14 views

use shell curl to post whith a checkbox array

The http code like this: <input type="checkbox" value="1" name="checkbox[]"> <input type="checkbox" value="2" name="checkbox[]"> <input type="checkbox" value="3" name="checkbox[]"> ...
0
votes
5answers
48 views

Setting checkbox as checked with jQuery

I have two input checkboxes, and I want to check/uncheck them with jQuery: <input type="checkbox" name="user1" value="1" id="u1" onclick="loadUserCalendar(1)"> <input type="checkbox" ...
-1
votes
1answer
59 views

How to post array data from a form to mysql DB

please forgive naivety and innocence...I am not a programmer! I have spent the best part of 4 days on this and I am ready for a PHP lesson or intense therapy. Scenario: DB built in mySQL. Table with ...
0
votes
2answers
17 views

Group checkbox and textfield arrays to display in form grouped together

How do i get 2 arrays to display grouped together after they submit form? <input type="checkbox" name="location[1]" value="Chicago,IL" /> <input name="qty[1]" type="text" size="8" ...
0
votes
1answer
30 views

jQuery loop through first x items in array of checkboxes

This code loops through an array of check boxes and collects the checked items to populate another input on the same form: $("input[id^='checkbox1']").change(function() { ...
0
votes
1answer
56 views

Trying to retrieve checkbox value from form

I have a form with a checkbox group that is loaded from a table. The table fields are MySQL TINYINT fields that hold a 1 for true and 0 for false, and are named thusly: frequency_sun, frequency_mon, ...
1
vote
3answers
59 views

HTML Control Array in JavaScript - Checkbox array of 1 returns zero length

I'm using a control array of checkboxes to capture a multiple selection The following code, with two checkboxes, works well and returns a value of 2 as expected (or however many are there). ...
0
votes
1answer
74 views

Creating an array of checkbox names

I'm having some trouble with creating an array of activex checkbox names. I want to create this array so I can use a For loop instead of having to type each checkbox code out separately. Here is what ...
0
votes
0answers
75 views

Using foreach loop to checked checkbox answer

Currently, I have a column in database called answer to store all the answers for the form submitted. For now, the form itself have a "save" button whereby user can save the form if they're not free ...
0
votes
2answers
24 views

display user choices from checkbox selections and undefined offset error

I would display the user choices made by ticking checkboxes. For some reason I don't understand, the array storing user choices displays as multidimensional array. The following is the code for ...
0
votes
0answers
28 views

Changing info in an Array in local storage a with checkbox click

I have two arrays that correspond 1 to 1, one has class names, one has a "y" or "n" if it's been taken. These two arrays are turned into strings with JSON.stringify in the local storage then parsed ...
0
votes
2answers
330 views

PHP - HTML - Get multiple checkbox value without making it become array

I have read through many questions and do my searches for hours, but i still cannot find the solution to what i exactly want. <form method="POST"> <input type="checkbox" name="fruit" ...
0
votes
2answers
47 views

Checkbox binding in Knockout with array

I have a question about knock out, here is my code in HTML and Javascript, can you tell me what is wrong with my code, when I click on check box the related isWaived in not checked <input ...
1
vote
0answers
19 views

CakePHP and multiselect checkbox

I'm sorry I've looked everywhere. For sure I'm doing a basic error in PHP using arrays. FormHelper returns me the correct HTML input checkbox only when I use the parameter 'selected' => array ...
0
votes
5answers
92 views

jQuery Update Textarea without replacing content

In JavaScript you could just use the =. or += to add existing data to data. How do I do this in jQuery. I am trying to add a check-box list to my form, each field should building up a list in the ...
0
votes
2answers
49 views

retrieving array values from a checkbox php

I'm having trouble seeing what is wrong here. I am trying to delete from my database based on what checkboxes have been checked. The if(!empty($_POST['removeCheckbox'])) says removeCheckbox is empty ...
0
votes
1answer
111 views

Javascript create array using foreach checkbox values [closed]

Ok guys i have this form <input id="valor" name="valor[]" type="checkbox" value="1" /> <input id="valor" name="valor[]" type="checkbox" value="2" /> <input id="valor" name="valor[]" ...
1
vote
2answers
122 views

Check checkboxes based on Array - jQuery

I have a unique checkbox modal window <div class="tv-choices" style="display:none;"><!-- turned on via button--> <div class="choices-title">TV</div> <div ...
0
votes
1answer
182 views

SELECT query based on checkboxes selected

I have a form , where users select available skills <form name="myForm" action="jssearch.php" method="post"> <input type="checkbox" name="chk1[]" value="1">Helpdesk Support<input ...
3
votes
2answers
182 views

Using Template Toolkit to tick a checkbox without using multiple loops

I'm using Template Toolkit and perl to generate a web page. I have an array with ID numbers in it that toggle checkboxes on and off, if that value exists in the array. I was wondering if there is a ...
0
votes
0answers
111 views

How to store checked checkboxes values into an array in Rails using Javascript and Ajax?

I am using a check_box_tag in a form_tag as follows in view_recommended_words.html.erb but it's not working: <%= form_tag view_recommended_words_path do |f| %> <% for keyword in ...
1
vote
1answer
75 views

How to pass an array of checkboxes to a knockout custom binding?

i'm using knockout 2.2.1. I have a set of 3 check boxes to concatenate to get the corresponding values all together: <fieldset data-role="controlgroup" id="top-colours" ...
1
vote
2answers
178 views

Loop through an array of checkboxes and insert values

First time posting, hope all goes well :) Been working on this for a while but basically I'm doing something like this: http://drupal.org/project/fancycheckboxes I need to set a value of yes/no for ...
0
votes
1answer
80 views

Using Perl to get Checked and put VALUE in an array

I'm new to Perl and trying to check to see if a series of checkboxs on an HTML page are checked or not. Each checkbox has a different numeric value I want to add to an array in Perl. I keep getting an ...
0
votes
0answers
87 views

Multiple CheckBox Values and Multiple Divs Filter

I have been struggling for hours trying to work with multiple checkbox values and comparing innerHTML of items within divs (li items). I get the filter to work some of the time, but not all of the ...
0
votes
1answer
48 views

Making URL out of checkbox values. mvcPattern

I'm facing the following problem. I have a overview of users, and I want a possibility to delete multiple users. So if i check user 1 (userid 1) and user 2 (userid 2) they will both delete. I want ...
1
vote
2answers
77 views

Looping over checkboxes -PHP

I have a page with around 50 input check boxes, of which their name="form[]" I need my php script to be able to loop through all the check boxes and which ever ones are checked and submitted I ...
0
votes
1answer
287 views

jQuery, ajax multiple checkboxes into $_POST array

I'm trying to send $_POST data to another page to add sessions for a simple shopping cart. I have a multiple forms within a PHP while loop each with multiple checkboxes, everything works apart from ...
2
votes
2answers
175 views

How to collect values of checkboxes into Array in jQuery

so I have a module popup window with a div. In it are several checkboxes, what I want to do is after the user has finished checking or unchecking the boxes he wants and clicks the done button. I want ...
1
vote
1answer
304 views

Create checkbox array in form_for rails

I have this _form file. <%= form_for(@company) do |f| %> <%= f.label :name %> <%= f.text_field :name %> <%= f.label :company_type %> <%= f.select :company_type_id, ...
2
votes
3answers
200 views

Get array from checkbox and then make a string in PHP

I have a form on my website, that uses an array to submit checkbox data. I then try to manipulate that data with a foreach loop to add a ":" to each checkbox data, and then I want to make that into a ...
0
votes
1answer
162 views

codeigniter - insert array from checkbox

This is my checkbox value in view : $data = array( 'name' => 'gejala[]', 'value' => $row->id_gejala.",".$row->id_penyakit, 'checked' => FALSE, 'style' => ...
0
votes
2answers
68 views

How to loop through checkboxes when they're ticked with other values linked

I can't seem to properly work through this list I have. I have x tables with number of rows between 10 and 200. Each row represents an item, and if you select one or more checkboxes, it loops through ...
0
votes
1answer
35 views

How do I make so when I click my checkbox, a separate and editable frame opens?

I am currently working with Java. I have made checkboxes and I would like to know how to make it so when the checkbox is clicked it opens a separate frame that can be modified and edited for my needs. ...
0
votes
5answers
80 views

Creating and Storing an array / Dynamic array

I have issues with creating an array and storing the info, I have a table with data that could be infinite in its number, a user will then select some options which will determine which of these ...
0
votes
1answer
107 views

Making every variable in this code Dynamic Visual Basic 2010

Sorry for the long piece of code. In a game I'm designing, I have this code starting at the checkbox.checked if statement currently repeated 5 times for each checkbox clicked--each checkbox is equal ...
0
votes
1answer
86 views

PHP Form using an array

Let me present my code first (please note im a beginner) <?php include ('header.php'); ?> <h3>Extra menu items , van eigen pagina's</h3> <!-- zet menu onderdelen aan of uit ...
1
vote
2answers
80 views

PHP POST print check box entries: nothing I have found on forums works

I have scoured the forums - here and elsewhere - trying to find a way to print out the checked options from a POST form that uses a check box group with the name areas[] where VALUE starts at1 and ...
1
vote
1answer
48 views

match array of posted values to an array of functions in php

I have a basic logic questions. My goal is to take the selected checkboxes from a form, submit them as an array and then match the values to an array of functions. Im trying to find a way of matching ...
0
votes
3answers
91 views

php skip empty array

I have a form(page2) with 2 checkboxes when a user selects checkbox 1 the script on the 3rd page will send instructions 1 to the emailaddress. When chkbox 2 is selected it sends instructions2. This ...
0
votes
0answers
161 views

i really need help on this simple php attendance check [closed]

i always do google search for my programming codes but this time i really can't figure out how to design my php project. i am making a simple offline "attendance checking site" what i want is to ...
0
votes
0answers
19 views

Checkboxes in an array

I have an array of check boxes called "myCheckBoxes" and I need to add some functionality to each item in that array. Could you please tell me a better way than write manually code for all the 20 ...
0
votes
2answers
102 views

Use an array in this function to display values of chechboxes checked

This function replicates the user experience of a Select/MultiSelect dropdown element - displaying the values of checkboxes checked in a container (adds/removes them when they're checked/unchecked), ...
0
votes
3answers
138 views

Check if at least 1 checkbox is ticked in PHP

I have 4 checkboxes and a user is required to tick 1 to continue(but may tick more). So I made 4 checkboxes: I have blue skin <input class="cbox" type="checkbox" name="skin" value="Yes" ...
0
votes
1answer
308 views

javascript to check checkbox when input box is ticked - checkbox array []

I have a simple javascript issue. I have a checkbox and a input box. when the user inputs text into an input box (onkeydown) I want it to check the corresponding checkbox in the row. My checkbox's ...
0
votes
0answers
157 views

Jquery: display selected list items in textarea as hierarchy

I have a checkbox list and when the child element is clicked it shows on textarea with parent element. The problem: I need that Parent and child elements will be different from each other on text ...
1
vote
2answers
109 views

Handle an Array of JQuery elements to interact with checkbox

What I am basicly trying to do, is to build an array of JQuery elements in order to interact with the checkboxes, the elements are $(.arms) and $(.neck) Javascript: var elements = new Array ...

1 2 3 4
15 30 50 per page