i want to create a checkbox on the popup window. when user "checked" the checkbox "not to show anymore", and click the close button to close the popup window, user then can browser the home page.

how can i save the checkbox value into database when user click the popup window "close" button.? (it need to call backend program)