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.

Pass JavaScript selected fields to PHP

Hi

Basically I have downloaded a script that converts a drop down list into checkboxes. I have the code working fine, but I'm having difficulty in passing what is checked/selected to a PHP loop to upload to a MySQL database.

since you provide only several pieces of code, it's not clear how your js converts the drop down list into checkboxes and why do you need such convertion at all. so i've tried to reconstruct the js convertion to demonstrate how to pass the checked boxes' values to the php-script. the server-side script does not make mysql queries but it returns the recieved $_POST['borcodes'] so we can see whether the js works or not.