form redirects, but checkbox is no longer checked

Hi all,
I have a checkbox that is supposed to filter a search. When the checkbox is selected, my javascript is redirecting the user to a new page where they will see the table reloaded with the search filter applied. But I cant get the filter to actually work, I think because the checkbox doesnt stay checked when the page redirects. How do I get the form state to stay the same thru the redirect?

You can do this for the checkbox:

Then on the new page you can use $_POST to access the variables the user has submitted.

Thanks for your help!

Sponsor our Newsletter | Privacy Policy | Terms of Service