Textbox displayed instead of checkbox

。_饼干妹妹 提交于 2019-12-22 13:58:21

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/18718724/textbox-displayed-instead-of-checkbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!