sniperscope Posted May 15, 2012 Share Posted May 15, 2012 Hi I have a little strange problem. I cannot get the post data from my form. It works fine if there is 10 or 15 user but reaching 40 or more than form values not posting. This is output of size: echo (int) $_SERVER['CONTENT_LENGTH']; ===== 22164 if(isset($_POST['hiddenField'])) { // do some work; } $sql = mysql_query("SELECT id, name FROM user WHERE shop_id = '" .$_SESSION['id']. "' ORDER BY name ASC"); while($row = mysql_fetch_array($sql)) { echo ' <div style="width:100%; border:solid 1px #CCC; background-color:#f1e7e7; margin-bottom:5px;"> <table class="tableSmall"> <tr><th width="81">' .$row['name']. '</th><th width="71">'; echo $grl_pic .' </th> <td width="622"><table width="100%"> <tr>'; for($j=0; $j<7; $j++) { $sql2 = mysql_query("SELECT user_master_id, user_start, user_end FROM work_master WHERE user_master_id = '" .$row['id']. "' AND date = '" .$days_no_kanji[$j]. "'"); $row2 = mysql_fetch_array($sql2); if(mysql_num_rows($sql2) == 0) { $start = "00:00"; $end = "00:00"; $m = 0; } else { $start = $row2['user_start']; $end = $row2['user_end']; $m = 1; } echo ' <th><input type="hidden" name="userData[]" value="' .$row['id']. '_' .$j .'_' .$m. '" /> <select name="' .$row['id']. '_' .$j .'_' .$m. '_start">' .ShopHour($start). '</select><br />~<br /> <select name="' .$row['id']. '_' .$j .'_' .$m. '_end">' .ShopHour($end). '</select> </th>'; } echo ' </tr> </table></td> </tr> </table> </div>'; } Is there someone has any idea why php is not posting? Quote Link to comment https://forums.phpfreaks.com/topic/262554-not-getting-post-data/ Share on other sites More sharing options...
PravinS Posted May 15, 2012 Share Posted May 15, 2012 I don't see FORM tag in your code... Quote Link to comment https://forums.phpfreaks.com/topic/262554-not-getting-post-data/#findComment-1345536 Share on other sites More sharing options...
sniperscope Posted May 15, 2012 Author Share Posted May 15, 2012 well there is a form tag but i didn't it is necessary to put entire page. I cropped with problem part. That code works fine if there is user less then 20 or something like it. And it update weekly schedule. But when user numbers reach 40 or more than php code is not entering inside of if(isset($_POST['hiddenField'])) block. Quote Link to comment https://forums.phpfreaks.com/topic/262554-not-getting-post-data/#findComment-1345538 Share on other sites More sharing options...
PravinS Posted May 15, 2012 Share Posted May 15, 2012 Please check "post_max_size" in PHP.INI file Quote Link to comment https://forums.phpfreaks.com/topic/262554-not-getting-post-data/#findComment-1345543 Share on other sites More sharing options...
sniperscope Posted May 15, 2012 Author Share Posted May 15, 2012 Problem solved. Problem was Suhohin. I removed from server and re-compile Apache-Php and wholaaa. Thanks for your interesting. Quote Link to comment https://forums.phpfreaks.com/topic/262554-not-getting-post-data/#findComment-1345544 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.