输入字段可以存储一千个字符吗? [英] Does input field can store a thousand characters?

查看:86
本文介绍了输入字段可以存储一千个字符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要创建一个隐藏字段(与输入字段相同),但这个

字段需要存储至少一千个字符?将这些数据提交给服务器时,是否可以获得
?任何帮助都是真的很赞赏。


谢谢

Chamnap

解决方案

Chamnap写道:





我需要创建一个隐藏字段(相同)作为输入字段),但是这个

字段需要存储至少一千个字符?


>将这些数据提交给服务器时有可能吗?



是的,使用FORM元素的POST方法.Mick


Chamnap写道:
< blockquote class =post_quotes>
我需要创建一个隐藏字段(与输入字段相同),但是这个

字段需要存储至少一千个字符?



如果你使用METHOD = POST,你应该没有问题。如果你使用METHOD = GET

那么你可能会遇到输入最大长度限制

字符串。你也会产生一些非常有趣的URL'是你用过GET。


-

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Chamnap说:





我需要创建一个隐藏字段(与输入字段相同),但是这个

字段需要存储至少一千个字符?



您的问题已经得到了回答,当然,如果您愿意保留换行符和/或
在文中,你需要确保你使用textarea或输入

multiline =" true"设置为属性。


/ *结束完全不必要的帖子* /


~A!


-

我的宠物程序员网络幽灵


Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters? It is possible
when submitting those data to the server? Any help is really
appreciated.

Thanks
Chamnap

解决方案

Chamnap wrote:

Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?

>It is possible when submitting those data to the server?

Yes, using POST method of the FORM element.Mick


Chamnap wrote:

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?

You should have no problem if you use METHOD=POST. If you use METHOD=GET
then you may run into a limitation on the maximum length of the input
string. You''d also generate some very funny looking URL''s is you used GET.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Chamnap said:

Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?

Your question has already been answered, of course, just as an aside, if
you''re interested in preserving the newlines and such in the text, you
will want to make sure you''re using either a textarea or an input with
multiline="true" set as an attribute.

/* End completely unnecessary post */

~A!

--
anthony at my pet programmer dot com


这篇关于输入字段可以存储一千个字符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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