plz help me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
forgun
Forum Commoner
Posts: 61
Joined: Wed Jan 29, 2003 6:05 am
Contact:

plz help me

Post by forgun »

Code: Select all

$pathї] = 
array(
$_POSTї'T1'] ,
$_POSTї'T2'] ,
$_POSTї'T3'] ,
$_POSTї'T4'] ,
$_POSTї'T5']
);
$kaysї] =
array(
$_POSTї'kay1'] ,
$_POSTї'kay2'] ,
$_POSTї'kay3'] ,
$_POSTї'kay4'] ,
$_POSTї'kay5']
);
$type = $_POSTї'D1'];
  check($type,$kays,$path);
function check($type , $kays , $path) {
	foreach ($kays as $val => $kay) {
		for ($i = 0 ; $i <= $val ; $i++) &#123;
			if ($kay) &#123;
				echo "<span lang="he">&#1497;&#1513;&#1504;&#1492; &#1496;&#1506;&#1493;&#1514; &#1513;&#1499;&#1495;&#1514;&#1492; &#1500;&#1513;&#1497;&#1501; &#1502;&#1497;&#1500;&#1514; &#1502;&#1508;&#1514;&#1495;<br/></span>";
			&#125;
		&#125;
	&#125; foreach ($path as $val => $tpath) &#123;
		for ($i = 0 ; $i <= $val ; $i++) &#123;
			if ($tpath) &#123;
				echo "<span lang= "he">&#1497;&#1513;&#1504;&#1492; &#1496;&#1506;&#1493;&#1514; &#1513;&#1499;&#1495;&#1514;&#1492; &#1500;&#1513;&#1497;&#1501; &#1491;&#1512;&#1498; &#1513;&#1500; &#1492;&#1511;&#1493;&#1489;&#1509;<br/></span>";
			&#125;
		&#125;
	&#125; sends($type , $kays ,$path);
&#125;
its give me all the time the error msg even id $path and $kays is not null
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

its give me all the time the error msg even id $path and $kays is not null
what error message?
User avatar
forgun
Forum Commoner
Posts: 61
Joined: Wed Jan 29, 2003 6:05 am
Contact:

Post by forgun »

the error is the msg that is wirte on the script
but the prob
is
is the the vars $kays and $path
are not null the error (no any of php)is show and look like is not continue
to the next step to the function sends
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

so for reproducing the error we need at least values for
$_POST['T1-5'], $_POST['kay1-5'] and $_POST['D1'].
Maybe even the code for sends();
If I'm in bad mood :twisted: I totally ignore posts with topics such as "doesn't work at all", "plz help me", "need quickly" and I think so do most people here...
Giving even the slightest clue might increase the probability of help a lot ;)
User avatar
forgun
Forum Commoner
Posts: 61
Joined: Wed Jan 29, 2003 6:05 am
Contact:

Post by forgun »

ok i will put bettr topic 10X
Post Reply