drh47606 2017-09-25 14:38
浏览 125
已采纳

php中输入类型文本数组的限制是什么?

I m dynamically generating 20 input field type of array in html and submitting record and storing in database.

For Example for particular one input field is coded as below. similar there are other 20 input fields are there.

<input readonly type="hidden" size="7" placeholder="Dis" id="dis" class="dis" name="dis[]" value="{{@e.less_discount}}" />

Now when i submit this form and check in php i m getting only first 110 record even if i have passed more than 114 records. here is code through which i m checking count of Post data.

    $itemCount = count($_POST["item"]);     
    echo "itemcount".$itemCount;
    print_r($_POST);

Out put is

111 items. but i have passed 114 record from form.

enter image description here

it's working fine if records are less than 110. so i want to know is there any limitation of input type array in html.

  • 写回答

2条回答 默认 最新

  • duanhuan3012 2017-09-25 14:43
    关注

    The limit on the input variables in PHP is something you can configure in your .ini file, the variable you are looking for is max_input_vars. If the distinct fields contain particularly large amounts of information, you may also have to look at post_max_size.

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

报告相同问题?

悬赏问题

  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)