隐框输入值不会发送:( [英] Hidden checkbox input values are not sent :(

查看:127
本文介绍了隐框输入值不会发送:(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组的复选框,它在一定条件下有自己的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

这篇关于隐框输入值不会发送:(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆