<?php if($_POST) { echo "<b>รายละเอียดของคุณคือ:</b><br />"; foreach($_POST['boxl'] as $boxl) foreach($_POST['boxw'] as $boxw) foreach($_POST['boxh'] as $boxh) echo "ความยาว: " . $boxl ." มม." ; echo " ความกว้าง: " . $boxw ." มม." ; echo " ความสูง: " . $boxh ." มม." ; if(isset($_POST['spec1'])) { $spec1 = $_POST['spec1']; } if(isset($_POST['speca'])) { $speca = $_POST['speca']; echo "<br />SPEC : " . $speca; } if(isset($_POST['spec2'])) { $spec2 = $_POST['spec2']; echo " / " . $spec2; } if(isset($_POST['spec3'])) { $spec3 = $_POST['spec3']; echo " / " . $spec3; } if(isset($_POST['spec4'])) { $spec4 = $_POST['spec4']; echo " / " . $spec4; } if(isset($_POST['spec5'])) { $spec5 = $_POST['spec5']; echo " / " . $spec5; } $boxls= $boxl * 10; $boxws= $boxw * 10; $co_k= 1.20; $co_c= 2.88; $co_h= 0.65; $rctm= $spec4; $co_crctm= $co_c * $rctm; $rctl1= $spec1; $rctl2= $spec3; $rctl3= $spec5; $rctall= $rctl1 + $rctl2 + $rct3; $rctl= $spec1 + $spec3 + $spec5; $co_rctml= $rctl + $co_crctm; $box_total_ect= $co_k * $co_rctml; $box_lw = $boxls + $boxws ; $box_z= $box_lw * 2; $box_zh= $box_z * $co_h; $co_sq_zh= sqrt($box_zh); $co_ect= $box_total_ect * $co_sq_zh; $box_total_bcts= 5.87 * $co_ect; $box_total_bct= $box_total_bcts / 10; $bct= round( $box_total_bct ,3 ); $ect = round( $box_total_ect ,3 ); { echo "<br />ค่า BCT : " . $bct ; echo " , ค่า ECT : " . $ect . "<br />"; echo "<br />**ค่าที่ได้มาจากการคำนวณ ไม่ใช่ค่าจากการทดสอบจริง** " ; } echo "</body></html>"; exit; } ?> <form id="form1" name="form1" method="post" action=""> <label for="boxl[]"></label> <table width="305" height="184" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="3">โปรดใส่รายละเอียดต่างๆ</td> </tr> <tr> <td width="115"> ความยาว : </td> <td width="155"><input type="text" name="boxl[]" id="boxl[]" /></td> <td width="125"> มม.</td> </tr> <tr> <td> ความกว้าง : </td> <td><input type="text" name="boxw[]" id="boxw[]" /></td> <td> มม.</td> </tr> <tr> <td> ความสูง : </td> <td><input type="text" name="boxh[]" id="boxh[]" /></td> <td> มม.</td> </tr> <tr> <td height="22" colspan="3" align="center" valign="bottom">SPEC</td> </tr> <tr> <td colspan="3" align="left"><table width="332" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="35" height="30"><label for="spec1"></label> <select name="spec1" id="spec1"> <option value="(($spec1 ['0.583'].'/'.$speca ['CA125']))">CA105</option> <option value="0.869">CA125</option> <option value="1.111">CA150</option> <option value="1.467">CA185</option> <option value="0.967">KA125</option> <option value="1.301">KA150</option> <option value="1.765">KA185</option> <option value="2.431">KA230</option> <option value="0.869">KI125</option> <option value="0.935">KI150</option> <option value="1.170">KI185</option> <option value="1.203">KJ150</option> <option value="1.464">KJ185</option> <option value="2.000">KJ230</option> <option value="2.090">KL205</option> <option value="1.386">KS170</option> <option value="0.837">KX125</option> <option value="1.464">KZ185</option> <option value="2.667">KZ230</option> </select></td> <td width="17" align="center">/</td> <td width="42"><select name="spec2" id="spec2"> <option value="0.582">CA105</option> <option value="0.869">CA125</option> <option value="1.111">CA150</option> <option value="1.467">CA185</option> <option value="0.967">KA125</option> <option value="1.301">KA150</option> <option value="1.765">KA185</option> <option value="2.431">KA230</option> <option value="0.869">KI125</option> <option value="0.935">KI150</option> <option value="1.170">KI185</option> <option value="1.203">KJ150</option> <option value="1.464">KJ185</option> <option value="2.000">KJ230</option> <option value="2.090">KL205</option> <option value="1.386">KS170</option> <option value="0.837">KX125</option> <option value="1.464">KZ185</option> <option value="2.667">KZ230</option> </select></td> <td width="16" align="center">/</td> <td width="52"><select name="spec3" id="spec3"> <option value="0.582">CA105</option> <option value="0.869">CA125</option> <option value="1.111">CA150</option> <option value="1.467">CA185</option> <option value="0.967">KA125</option> <option value="1.301">KA150</option> <option value="1.765">KA185</option> <option value="2.431">KA230</option> <option value="0.869">KI125</option> <option value="0.935">KI150</option> <option value="1.170">KI185</option> <option value="1.203">KJ150</option> <option value="1.464">KJ185</option> <option value="2.000">KJ230</option> <option value="2.090">KL205</option> <option value="1.386">KS170</option> <option value="0.837">KX125</option> <option value="1.464">KZ185</option> <option value="2.667">KZ230</option> </select></td> <td width="18" align="center">/</td> <td width="46"><select name="spec4" id="spec4"> <option value="0.582">CA105</option> <option value="0.869">CA125</option> <option value="1.111">CA150</option> <option value="1.467">CA185</option> <option value="0.967">KA125</option> <option value="1.301">KA150</option> <option value="1.765">KA185</option> <option value="2.431">KA230</option> <option value="0.869">KI125</option> <option value="0.935">KI150</option> <option value="1.170">KI185</option> <option value="1.203">KJ150</option> <option value="1.464">KJ185</option> <option value="2.000">KJ230</option> <option value="2.090">KL205</option> <option value="1.386">KS170</option> <option value="0.837">KX125</option> <option value="1.464">KZ185</option> <option value="2.667">KZ230</option> </select></td> <td width="20" align="center">/</td> <td width="59"><select name="spec5" id="spec5"> <option value="0.582">CA105</option> <option value="0.869">CA125</option> <option value="1.111">CA150</option> <option value="1.467">CA185</option> <option value="0.967">KA125</option> <option value="1.301">KA150</option> <option value="1.765">KA185</option> <option value="2.431">KA230</option> <option value="0.869">KI125</option> <option value="0.935">KI150</option> <option value="1.170">KI185</option> <option value="1.203">KJ150</option> <option value="1.464">KJ185</option> <option value="2.000">KJ230</option> <option value="2.090">KL205</option> <option value="1.386">KS170</option> <option value="0.837">KX125</option> <option value="1.464">KZ185</option> <option value="2.667">KZ230</option> </select></td> </tr> </table></td> </tr> <tr> <td colspan="3" align="center"><input type="submit" name="Submit" value="ส่งข้อมูล" /></td> </tr> </table> </form>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง