No Javascript required. In a form (follow the guy above me's link) you can use the <form> tag, and set the following attributes:
method - can equal "post" or "get"
If the attribute method equals post, the information in the form, like whether those two checkboxes are checked or not, will be...