HTML输入名称可以包含空格,逗号等吗? [英] Can a HTML input name contain spaces, commas etc?

查看:92
本文介绍了HTML输入名称可以包含空格,逗号等吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我可以输入诸如<input name="total sum(userID2223)" type="text" />之类的名称吗?有什么规定吗?

Basically, can I have input names like <input name="total sum(userID2223)" type="text" /> and similar? Are there any rules for that?

推荐答案

可以.当PHP读取表单时,您将能够使用$POST["total sum(userID2223)"]寻址数据.

Yes you can. When PHP reads the form, you will be able to address the data with $POST["total sum(userID2223)"].

我无法确切地说一无所知,但是可能在某处发生了错误的设计决策.

Without knowing more about what you are trying to do I can't say for sure, but there's probably a bad design decision happening somewhere.

这篇关于HTML输入名称可以包含空格,逗号等吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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