ThinkPHP使用 input 接收数据
2022-07-28 14:14:58
129
{{single.collect_count}}

ThinkPHP使用 input 接收数据

input 是一个助手函数
使用 input 接收 post 请求的数据,写法如下,得到的数据是一个键值对类型的数组

$data = input('post.');

如果是 get 请求,那么就将 post 改成 get 即可

– thinkphp 随笔 –
个人博客 http://www.sharekong.xyz 欢迎访问

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}