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条)

报告相同问题?

悬赏问题

  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?