I have a set of check-boxes, which under certain conditions have their DIV container element hidden.
The problem is that values from these check-boxes are not sent through $_POST when they are not visible. How can I force them to be sent?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not the visibility that is affecting if you can see the checkbox values. Checkbox values are not sent if the checkbox is not checked.
If the value does not exist in $_POST it has not been checked.
http://www.html-form-guide.com/php-form/php-form-checkbox.html