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
https://forums.phpfreaks.com/topic/262554-not-getting-post-data/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.