Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Post array limit?

Tags:

html

php

I have problem when post many row data in my tabular input, i only see 500 rows.

here my code for detail:

<?php
if($_POST){
echo '<pre>';
print_r($_POST);
echo '</pre>';
}
?>

<form method="post" enctype="multipart/form-data" >
    <table>
        <tr>
            <td>Value</td>
            <td>Name</td>
        </tr>
    <?php for($i=1;$i<=1000;$i++){?>
        <tr>
            <td><input type="input" name="attributes[<?= $i ?>][value]" value="<?= $i ?>" /></td>
            <td><input type="input" name="attributes[<?= $i ?>][name]" value="<?= 'name'. $i ?>" /></td>
        </tr>
    <?php } ?>

    </table>
<input type="submit"/>
</form>
like image 309
her03 Avatar asked Sep 23 '15 07:09

her03


1 Answers

Limit can be identified using max_input_vars which is default 1000.

If you have multiple arrays with unknown indexes, then you must need to change max_input_vars in php.ini file.

like image 157
Ketan Flitzen Avatar answered Oct 03 '22 03:10

Ketan Flitzen