PHP多图上传获取到的POST不对

oSolomon123 2019-05-30 08:37:42
这是表单的多图上传未选择图片打印出来的POST数据

array(15) { ["sort"]=> string(1) "1" ["tag"]=> string(0) "" ["cpzxbannerimage"]=> string(0) "" ["cpzxnavicon"]=> string(0) "" ["cpzxnavwords"]=> string(0) "" ["cpzxbottomimage"]=> string(0) "" ["cpzxhrimage"]=> string(0) "" ["cpzxystitleimage"]=> string(0) "" ["cpzxysitemimagea"]=> string(0) "" ["cpzxysitemimageb"]=> string(0) "" ["cpzxysitemimagec"]=> string(0) "" ["cpzxysitemimaged"]=> string(0) "" ["cpzxysitemimagee"]=> string(0) "" ["cpzxysitemimagef"]=> string(0) "" ["submit"]=> string(6) "提交" }


这是选择了图片后提交表单打印出来的POST数据

array(16) { ["sort"]=> string(0) "" ["tag"]=> string(0) "" ["cpzxbannerimage"]=> string(0) "" ["cpzxnavicon"]=> string(0) "" ["cpzxnavwords"]=> string(0) "" ["cpzxbottomimage"]=> string(0) "" ["cpzxhrimage"]=> string(0) "" ["cpzxystitleimage"]=> string(0) "" ["cpzxysitemimagea"]=> string(0) "" ["cpzxysitemimageb"]=> string(0) "" ["cpzxysitemimagec"]=> string(0) "" ["cpzxysitemimaged"]=> string(0) "" ["cpzxysitemimagee"]=> string(0) "" ["cpzxysitemimagef"]=> string(0) "" ["cpzxkhalimage"]=> array(1) { [0]=> string(51) "images/0/2019/05/m9w9LIiwSo6NM7FP9qSP9zZZclwZm1.jpg" } ["submit"]=> string(6) "提交" }
...全文
103 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
AngryBananas 2019-07-05
  • 打赏
  • 举报
回复
可以我的博客里面看下,有一章是多图上传、生成缩略图
oSolomon123 2019-05-30
  • 打赏
  • 举报
回复
oSolomon123 2019-05-30
  • 打赏
  • 举报
回复
oSolomon123 2019-05-30
  • 打赏
  • 举报
回复

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧