多个复选框 [英] multiple checkbox
问题描述
嗨
我的页面上有多个复选框,我想只访问下一页上的所选复选框,任何人都可以告诉我如何操作
Thnx提前
再见
请参阅以下示例。希望它能帮到你
展开 | 选择 | Wrap | 行号
请参阅以下示例。希望它能帮到你
展开 | 选择 | Wrap | 行号
HI
Thnx为你的回复
这件事已经知道我问我是否在第一页上选择了3个复选框然后如何访问所有这三个选中的复选框你只给出打印的方法最后选择的盒子
如果你知道那么plz回复
bye
此样本不正确!它将复选框视为单选按钮,因为您为它们指定了相同的名称。只有一个名称可以这样设置。如果要获取已检查的所有值,请将name字段设为数组。因此,当您单击复选框1和3(值''''和'''')时,您有一个数组,当使用print_r打印时,如下所示:展开 | 选择 | Wrap | 行号
Hi
I have multiple checkboxes on my page and i want to access only the selected checkbox on the next page can any one give me the idea how to do it
Thnx in advance
Bye解决方案Please see the following example. Hope it will help you
Expand|Select|Wrap|Line Numbers
Please see the following example. Hope it will help you
Expand|Select|Wrap|Line Numbers
HI
Thnx for ur response
this thing know already i asked if i select 3 checkboxes on the first page then how to access all those three selected check boxes the method u gave print only the last selected box
if u know then plz reply
byeThis sample is incorrect! It treats the checkboxes like radio buttons because you give them all an identical name. And only one of the names can be set that way. When you want to get all the values that have been checked, you make the name field an array. So when you click checkboxes 1 and 3 (values ''a'' and ''c''), you have an array that, when printed using print_r looks like:
Expand|Select|Wrap|Line Numbers
这篇关于多个复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆