显示文本框而不是复选框 [英] Textbox displayed instead of checkbox
问题描述
-HTML代码有效:
< input name = kshtype =checkboxid =ksh/>
我试过在不同的服务器上,它在那里工作正常,所以我认为这是一个基于服务器的问题。但我不知道是什么原因造成的。任何想法?
我会很感激任何提示。
提前致谢
编辑
因为我忘了这可能是一个重要的因素,我也粘贴了doctype声明:
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Strict // EN
http://www.w3。组织/ TR / XHTML1 / DTD / XHTML1-strict.dtd>
< html xmlns =http://www.w3.org/1999/xhtml>
编辑2
http://larte2002.vizz.pl/gosc/bl/cennik/< - 客户端服务器,显示文本框
http://89.65.65.3/BL/cennik/ < - 我的服务器,复选框
两台服务器上的内容完全相同!
根据这个,复选框的格式是 input type =checkboxname =boxnamevalue =boxval> Box text
,所以它可能是你在键入之前而不是之后有名称。也许尝试切换。
I have very unusual problem. I've created an HTML form with all types of inputs.
Then I put it on a server and what happened took me to the ground literally. All my checkboxes turned into textboxes. The code I put on my website has checkboxes in it, but when I use firebug it says it has textboxes there.
-HTML code is valid:
<input name="ksh" type="checkbox" id="ksh" />
I tried on a different server, it works fine there, so I assume it's a server-based problem. But I have no idea what can cause that. Any ideas?
I'd be thankful for any tips.
Thanks in advance
EDIT
Because I forgot and this may be an important factor I also paste doctype declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
EDIT 2
http://larte2002.vizz.pl/gosc/bl/cennik/ <- client's server, which shows textboxes
http://89.65.65.3/BL/cennik/ <- my server, checkboxes
Content on servers is exactly the same on both!
According to this, for checkboxes the format is input type="checkbox" name="boxname" value="boxval">Box text
, so it may be that you have the name before type instead of after. Maybe try switching that.
这篇关于显示文本框而不是复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!