显示文本框而不是复选框 [英] Textbox displayed instead of checkbox

查看:147
本文介绍了显示文本框而不是复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有非常不寻常的问题。我创建了一个包含所有类型输入的HTML表单。

然后我把它放在服务器上,发生了什么让我直面字面意思。我所有的复选框都变成了文本框。我放在我的网站上的代码中有复选框,但是当我使用萤火虫时,它说它有文本框。

-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆