隐框输入值不会发送:(

2023-09-10 21:22:07 作者:女人都是浮云哥才是传说

我有一组的复选框,它在一定条件下有自己的DIV容器元素是隐藏的。

I have a set of check-boxes, which under certain conditions have their DIV container element hidden.

现在的问题是,从这些的复选框值不通过 $ _ POST 时,他们是不可见的发送。我怎么能强迫他们被送到?

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?

推荐答案

这并不是说是影响,如果你能看到的复选框值的可见性。如果该复选框未选中的复选框值不发送。

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

相关推荐