fork(1) download
  1. <tr><td><table cellpadding="1" cellspacing="1">
  2. <tr>
  3. <?
  4. for ($i=0; $i<4; $i++)
  5. {
  6. ?>
  7. <td id="reg_<?=$i?>">
  8. <?
  9. if(count($arr_regions[$tree_reg[$i]])) /// На эту строку ругается !!!
  10. {
  11. ?>
  12. <select style=" width:220px; height:25px; " name="region_<?=$i?>"
  13. <?
  14. if(!$i)
  15. {
  16. ?>
  17. onChange="search_reg(<?=$i?>, this.value, this.value, 0); return false">
  18. <?
  19. }
  20. else
  21. {
  22. ?>
  23. onChange="search_reg(<?=$i?>, this.value, <?=$glob_region?>, <?=$tree_reg[$i]?>); return false">
  24. <?
  25. }
  26. ?>
  27. <option value="0">&nbsp;&nbsp;РАСПОЛОЖЕНИЕ</option>
  28. <?
  29. foreach($arr_regions[$tree_reg[$i]] as $index=>$arr_region)
  30. {
  31. ?>
  32. <option value="<?=$index?>" <? if($tree_reg[($i+1)]==$index) echo 'selected'; ?> <?=$arr_region?></option>
  33. <?
  34. }
  35. ?>
  36. </select>
  37. <input type="hidden" name="name_reg_<?=$i?>" id="name_reg_<?=$i?>" value="<?=$arr_regions_url[$tree_reg[$i]][$tree_reg[($i+1)]]?>">
  38. <?
  39.  
  40. }
  41. ?>
  42. </td>
  43. <?
  44. }
  45. ?>
  46.  
  47. <td id="reg_4"></td>
  48. <td><input type="hidden" size=70 id="zapros_q" name="zapros_q" value=""></td>
  49. </tr>
  50. </table></td></tr>
Success #stdin #stdout #stderr 0.03s 26208KB
stdin
Standard input is empty
stdout
	<tr><td><table cellpadding="1" cellspacing="1">
	<tr>
		<?
		for ($i=0; $i<4; $i++)
		{
		?>
		<td id="reg_">
			<?
			if(count($arr_regions[$tree_reg[$i]])) /// На эту строку ругается !!!
			{
			?>
			<select style=" width:220px; height:25px; " name="region_" 
				<?
				if(!$i)
					{
					?>
					onChange="search_reg(, this.value, this.value, 0); return false">
					<?
					}
				else
					{
					?>
					onChange="search_reg(, this.value, , ); return false">
					<?
					}
				?>
			<option value="0">&nbsp;&nbsp;РАСПОЛОЖЕНИЕ</option>
			<?
			foreach($arr_regions[$tree_reg[$i]] as $index=>$arr_region)
				{
				?>
				<option value="" <? if($tree_reg[($i+1)]==$index) echo 'selected'; ?> </option>
				<?
				}
				?>
			</select>
			<input type="hidden" name="name_reg_" id="name_reg_" value="">
			<?
			
			}
			?>
		</td>
		<?
		}
		?>
		
		<td id="reg_4"></td>
		<td><input type="hidden" size=70 id="zapros_q" name="zapros_q" value=""></td>
	</tr>
	</table></td></tr>
stderr
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 7
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 12
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 17
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 23
PHP Notice:  Undefined variable: glob_region in /home/ZpRkxP/prog.php on line 23
PHP Notice:  Undefined variable: tree_reg in /home/ZpRkxP/prog.php on line 23
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 23
PHP Notice:  Undefined variable: index in /home/ZpRkxP/prog.php on line 32
PHP Notice:  Undefined variable: arr_region in /home/ZpRkxP/prog.php on line 32
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: tree_reg in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: i in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: tree_reg in /home/ZpRkxP/prog.php on line 37
PHP Notice:  Undefined variable: arr_regions_url in /home/ZpRkxP/prog.php on line 37