I'm trying to write the value of current javascript variables to the database by passing the $_GET('CoordX') to php to be written to the database upon clicking the "save" form button. However, I am not totally adept to javascript and php $_GET, especially not with the abstract layer style of zen_button(yaddayadda).

What I am trying to do is get the coordinates of a draggable image from the javascript variable: "CoordX" and save it as a php variable, which can then be saved to the database. I think I've got the php variable = to the javascript variable (obviously a bit hard to tell since php loads first and I would need to do some sort of refresh to test that) but Im not sure how I would simply save it to a database table that I set up for it using zen-cart functions for posting.

Any thoughts?