Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Rewritten: jQuery / How do I use an array Re: Rewritten: jQuery / How do I use an array

#59404
Mr KiTT3N
Member

The way you got your code working is everytime they click on a checkbox it will post information to server and load

From how you are explaining im not sure what the end product is supposed to do anyways to answer you question if you want to store all the checkboxs in an array it would be done like this

Code:



From the example above the array will have ["something","somethingElse"]

For second Question:

Depends on what language you are using, python, perl, php, ruby ect? but the universal way is to send a long string

Code:



This will send "something, somethingElse" to the sever

((php: $_POST == "something, somethingElse" ))

Then you could split that string back into a array or defintion list (all depending on the language)