单选按钮似乎未选中 [英] Radio buttons do not appear checked
问题描述
< b>代理商4< / b>
< input type =" radio"名称= QUOT;许可[4]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[4]"值= QUOT; 0" >否
< br>
< b>代理商5< / b>
< input type =" radio"名称= QUOT;许可[5]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[5]"值= QUOT; 0" >没有
< br>
我已经设置了这种方式,但是在浏览器中查看时,没有选中
单选按钮。
顺便说一下,单选按钮的名称必须保留为PHP数组格式
,因为它们将被服务器端的PHP完全引用。
抱歉,不能改变。
我该怎么办?
Phil
我认为您想要的是将输入类型更改为复选框
干杯,
Mike
" Phil Powell" <所以***** @ erols.com>在留言中写道
新闻:1c ************************** @ posting.google.c om ...< b> Agency 4< / b>
< input type =" radio"名称= QUOT;许可[4]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[4]"值= QUOT; 0" >否
< br>
< b>代理商5< / b>
< input type =" radio"名称= QUOT;许可[5]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[5]"值= QUOT; 0" >没有
< br>
我已经设置了这种方式,但在浏览器中查看时,没有任何
单选按钮出现。
顺便说一句,单选按钮的名称必须保留在PHP数组格式中,因为它们将像服务器端的PHP一样完全引用。
抱歉,不能改变它。
我该怎么办?
Phil
2003年9月30日13:41:13 -0700,所以***** @ erols.com (Phil Powell)写道:
< ; b>代理商4< / b>
< input type =" radio"名称= QUOT;许可[4]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[4]"值= QUOT; 0" >否
< br>
< b>代理商5< / b>
< input type =" radio"名称= QUOT;许可[5]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[5]"值= QUOT; 0" >没有
< br>
我已经设置了这种方式,但是在浏览器中查看时,没有任何
单选按钮出现。
适用于IE6和Mozilla 1.4。您使用的浏览器是什么?
-
Andy Hassall(an**@andyh.co.uk)icq(5747695)( http://www.andyh.co.uk )
空间:磁盘使用情况分析工具( http://www.andyhsoftware.co.uk/space)
文章< 1c ************************** @ posting.google.com>,
so*****@erols.com 说... < blockquote class =post_quotes>< b> Agency 4< / b>
< input type =" radio"名称= QUOT;许可[4]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[4]"值= QUOT; 0" >否
< br>
< b>代理商5< / b>
< input type =" radio"名称= QUOT;许可[5]"值= QUOT 1 QUOT;检查>是
< input type =" radio"名称= QUOT;许可[5]"值= QUOT; 0" >没有
< br>
我用这种方式进行设置,但在浏览器中查看时,没有任何
单选按钮出现。
顺便说一句,单选按钮的名称必须保持在PHP数组格式中,因为它们将被服务器端的PHP完全引用。
抱歉,不能改变它。
在IE6和Firebird 0.6.1中为我工作
我该怎么办?
>
找到更合适的组。这既不是PHP也不是JavaScript
问题。
-
Hywel我不吃乳蛋饼
< a rel =nofollowhref =http://hyweljenkins.co.uk/target =_ blank> http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
<b>Agency 4</b>
<input type="radio" name="permission[4]" value="1" checked> Yes
<input type="radio" name="permission[4]" value="0" > No
<br>
<b>Agency 5</b>
<input type="radio" name="permission[5]" value="1" checked> Yes
<input type="radio" name="permission[5]" value="0" > No
<br>
I have it set up this way but upon viewing in the browser none of the
radio buttons appear checked.
By the way the radio button names MUST remain in the PHP array format
as they will be referenced EXACTLY like that by PHP on the server end.
Sorry can''t change that.
What can I do?
Phil
I think what you want want is to change your input type to "checkbox"
Cheers,
Mike
"Phil Powell" <so*****@erols.com> wrote in message
news:1c**************************@posting.google.c om...<b>Agency 4</b>
<input type="radio" name="permission[4]" value="1" checked> Yes
<input type="radio" name="permission[4]" value="0" > No
<br>
<b>Agency 5</b>
<input type="radio" name="permission[5]" value="1" checked> Yes
<input type="radio" name="permission[5]" value="0" > No
<br>
I have it set up this way but upon viewing in the browser none of the
radio buttons appear checked.
By the way the radio button names MUST remain in the PHP array format
as they will be referenced EXACTLY like that by PHP on the server end.
Sorry can''t change that.
What can I do?
Phil
On 30 Sep 2003 13:41:13 -0700, so*****@erols.com (Phil Powell) wrote:
<b>Agency 4</b>
<input type="radio" name="permission[4]" value="1" checked> Yes
<input type="radio" name="permission[4]" value="0" > No
<br>
<b>Agency 5</b>
<input type="radio" name="permission[5]" value="1" checked> Yes
<input type="radio" name="permission[5]" value="0" > No
<br>
I have it set up this way but upon viewing in the browser none of the
radio buttons appear checked.
Works for me, on IE6 and Mozilla 1.4. What browser are you using?
--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
In article <1c**************************@posting.google.com >,
so*****@erols.com says...<b>Agency 4</b>
<input type="radio" name="permission[4]" value="1" checked> Yes
<input type="radio" name="permission[4]" value="0" > No
<br>
<b>Agency 5</b>
<input type="radio" name="permission[5]" value="1" checked> Yes
<input type="radio" name="permission[5]" value="0" > No
<br>
I have it set up this way but upon viewing in the browser none of the
radio buttons appear checked.
By the way the radio button names MUST remain in the PHP array format
as they will be referenced EXACTLY like that by PHP on the server end.
Sorry can''t change that.
Works for me in IE6 and Firebird 0.6.1
What can I do?
Find a more appropriate group. This is neither a PHP nor JavaScript
issue.
--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
这篇关于单选按钮似乎未选中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!