Jump to content

Not getting Post data


sniperscope

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.