If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] Posting array from checkboxs

Hi everyone, I have an issue posting an array from check boxs, simply put i have a database that contains some details, i want to take these details, split them into an array and therefore separate check boxs then a user will select a number of check box and then this will be saved as an array into a seperate table, hope i explained that ok.

So here is the code I have some far, I have some code elsewhere for the $result part, and for the submit part, but basically its grabs the information from a table and splits it into check boxs (in theory) the "label" part works, i have this here to check that its is getting the right information and it is, the problem happens when I submit the form, it will only save the last checked check box, so if i click say check box 1,3,5 (there could be an unlimited amount of options which is why im pulling the data from another table) and these values are One, Three, Five only Five will save in the table.

Thanks for the reply, However I'm not sure how many values there will be (check box's), because on a previous screen the user will select some options which could result in the need from anywhere between two check box's or 30 for example. So i cant create a separate input field like that (or at least I don't think I can), because I don't know how many there will be on each occasion.