需要帮助来回显用户选择的复选框 [英] Need help echoing the checked boxes selected by the user
本文介绍了需要帮助来回显用户选择的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何显示选中的复选框?我试过了但是没用
How to display selected checkbox? I tried but it didnt work
< input type = checkbox value = Administrative<?php echo($ industry_sector1a =='Administrative '?'selected = selected':''); ?> name = industry_sector1>行政
我在下拉框中使用以下内容。
I use the below for drop down boxes .
<option value="-1"<?php echo ($native_language == '-1' ? 'selected="selected"' : ''); ?>>----- Please Select -----</option>
<option value="1"<?php echo ($native_language == '1' ? 'selected="selected"' : ''); ?>>English - United States</option>
推荐答案
<input type="checkbox" checked="checked" name="foo" />bar
这篇关于需要帮助来回显用户选择的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文