Posted by Heinz
2013-12-16

Hi Tom. Thank you for the fine Address Book script.
I'd like to have checkboxes in a table grid, where i have two coords, the x and y, so that the checkboxes have to post two values to database. Look here: http://www.kippnetz.de/address.jpg
Is there any solution for that?
Greetings and Thanks from Bonn.

Posted by Tom
2013-12-16

Hi Heinz,

>where i have two coords, the x and y, so that the checkboxes have to post two values to database.

You mean posting two values to one field in the database?
Or posting two values to two different fields in the database?

In either case, you can do it by javascript. First, detect a user's click on a checkbox. When it's clicked, set the values to appropreate fields on the page. When the user clicks the "Save" button, the values will be posted to the database by PHP.

Also you need to write a javascript code that checks/unchecks the checkboxes when the script reads the values from the database.