|
 |
|
เรื่อง for loop ช่วยดูcode ให้หน่อยครับว่าแก้ตรงไหนครับ คือ ผมส่งค่าไปมันคำนวนมันก็ขึ้นเป็นตัวเลขเดิมๆ |
|
 |
|
|
 |
 |
|
Code (PHP)
<?php
<html>
<body background="D:\bw.jpg"></body>
<form action="index0.php" method="post">
<FONT SIZE="" COLOR="#FFFFFF">o=</FONT> <input type="text" name="o" /><BR>
<FONT SIZE="" COLOR="#FFFFFF">o=</FONT> <input type="text" name="o" /><BR>
<input type="submit" />
</form>
</body>
</html>
</BODY>
</HTML>
</BODY>
</HTML>
code for loop
<?
$o = $_POST['o'];
//$o=1;
for ( ; $o <=10; $o++) {
echo $o*$o,"<BR>\n";
}
$o = $_POST['o'];
//$o=1;
for ( ; $o <=10; ) {
echo $o*$o,"<BR>\n";
$o++;
}
?>
</BODY>
</HTML>
?>
|
 |
 |
 |
 |
Date :
2009-08-24 15:02:30 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ พี่เทพจริงๆ
|
 |
 |
 |
 |
Date :
2009-08-24 15:07:01 |
By :
raparkas |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบไวจัง อิอิ 
|
 |
 |
 |
 |
Date :
2009-08-24 15:09:22 |
By :
ariya99 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
555+   
|
 |
 |
 |
 |
Date :
2009-08-24 15:16:35 |
By :
ariya99 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อิอิ 
|
 |
 |
 |
 |
Date :
2009-08-24 18:19:13 |
By :
gangzaclub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไปๆๆๆๆๆๆๆๆๆๆๆๆๆ เคยเลยๆๆๆๆๆ ไม่คิดจะช่วยเพื่อนเลย
|
 |
 |
 |
 |
Date :
2009-08-27 15:10:25 |
By :
aomzaza50 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|