dongma7725 2013-09-11 14:30
浏览 17
已采纳

PHP $ _POST数组中的Textarea截止值

My textarea on a webform [using POST method] is getting cutting off at 1024 characters.

The field does not have a max length attribute set and will allow over 1024 characters to be entered. However, when I view the $_POST array in Eclipse and try to insert into Database, I can see it is not the entirety of the user's input.

What is the root cause of this issue? Is there an inherent limitation that I am unaware of? I can't seem to find any documentation on this issue. Any advice is greatly appreciated.

  • 写回答

2条回答 默认 最新

  • douyazi1129 2013-09-24 15:01
    关注

    There was not a limitation in the database after all. The 'variable' window in Eclipse will only show a maximum of 1024 characters, per field, which is what threw me off. There were other issues with my insert statement that made me think that the Eclipse limitation was the root; however, after using @George Brighton's suggestion of print_r($_POST), I realized my error.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”