PHP - Post getting lost after 70th variable in the array -
okay, i've spent way long trying figure out. have while loop takes rows database , echos input each 1 selected_id[]
names. on submit utilize $_request collect selected checkboxes, reason, none of inputs after 70th variable post. selected_id[0]
through selected_id[70]
post normal selected_id[71]
, higher not.
why able $_request array 70th variable in array??
if remove 1 of entries database, problem still occur @ 71st entry echoed or selected_id[70]
i'm using php version 5.3.15 , max_input_vars set 1000. max_input_nesting_level set 64, don't believe whats causing problem. memory_limit set 20m.
here bulk code:
<?php if(!empty($_request[assignedprocess])){ $selected_id = $_request[selected_id]; $howmany = count($selected_id); $msgback="(".$howmany.") entry(ies) updated. <br>"; echo $msgback; } ?> <form action="index.php" method="post" name="index"> <?php while($row = mysql_fetch_array($result_groups)){ echo "<input name="selected_id[]" type="checkbox" value="'.$row[id].'" />"; } ?> <input type="hidden" name="assignedprocess" value="11"> <input type="submit" name="subs" value="apply"> </form>
sorry sloppy code , horrible english... appreciate help can give, in advance.
set php_value post_max_size 15m(or more) in php.ini:
php_value post_max_size 15m
fix code:(you miss echo function)
<form action="index.php" method="post" name="index"> <?php while($row = mysql_fetch_array($result_groups)){ $id= $row[id]; echo "<input name='selected_id[]' type='checkbox' value= $id />"; } ?> <input type="hidden" name="assignedprocess" value="11"> <input type="submit" name="subs" value="apply"> </form>
arrays post php
No comments:
Post a Comment