Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > เป็นไปได้มั้ยครับ คือว่า ผมออกแบบโปรแกรม php น่ะครับ ให้รับค่า กว้าง ยาว สูง บนหน้าเวป แล้วมีคำสั่งอะไรบ้างน่ะครับ ที่ปริมาตร



 

เป็นไปได้มั้ยครับ คือว่า ผมออกแบบโปรแกรม php น่ะครับ ให้รับค่า กว้าง ยาว สูง บนหน้าเวป แล้วมีคำสั่งอะไรบ้างน่ะครับ ที่ปริมาตร

 



Topic : 093752



โพสกระทู้ ( 332 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์




จะได้ค่าโดยอัตโนมัติ ขึ้นมาแสดงเลย โดยนำค่าของ กว้าง ยาว สูง ไปคูณกัน และได้ค่ามาใส่ไว้ใน ปริมาตร เลยน่ะครับ ตามภาพ

ีหน้า capacity



Tag : PHP







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-04-12 15:09:56 By : joolawan View : 719 Reply : 5
 

 

No. 1



โพสกระทู้ ( 1,322 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ก็คำนวนเลยสิครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-04-12 15:16:56 By : pokultra
 


 

No. 2



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

อ่านค่ามาจากไหนหว๋า
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-04-12 15:20:05 By : mr.win
 

 

No. 3



โพสกระทู้ ( 332 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ผมอยากให้มัน คำนวนให้อัตโนมัติน่ะครับ หลังจากใส่ค่าของ กว้าง ยาว สูง แล้วของปริมาตรก็ขึ้นเลยน่ะครับ

Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="600" border="1">
  <tr>
    <th scope="row">ปริมาตรตู้</th>
    <td>กว้าง</td>
    <td>ยาว</td>
    <td>สูง</td>
    <td><p>จำนวนตู้</p></td>
    <td>ปริมาตร</td>
  </tr>
  <tr>
    <th scope="row"><form id="arrange_cabinet" name="arrange_cabinet" method="post" action="">
      <label for="textfield"></label>
    </form></th>
    <td><input type="text" name="total_wide" id="total_wide" /></td>
    <td><input type="text" name="total_length" id="total_length" /></td>
    <td><input type="text" name="total_height" id="total_height" /></td>
    <td><input type="text" name="total_member" id="total_member" /></td>
    <td><input type="text" name="total_capacity" id="total_capacity" /></td>
  </tr>
  <tr>
    <th scope="row"><input type="text" name="textfield5" id="textfield5" /></th>
    <td><input type="text" name="cabinet0_wide" id="cabinet0_wide" /></td>
    <td><input type="text" name="cabinet0_length" id="cabinet0_length" /></td>
    <td><input type="text" name="cabinet0_height" id="cabinet0_height" /></td>
    <td><input type="text" name="cabinet0_member" id="cabinet0_member" /></td>
    <td><input type="text" name="cabinet0_capacity" id="cabinet0_capacity" /></td>
  </tr>
  <tr>
    <th scope="row"><input type="text" name="textfield10" id="textfield10" /></th>
    <td><input type="text" name="cabinet1_wide" id="cabinet1_wide" /></td>
    <td><input type="text" name="cabinet1_length" id="cabinet1_length" /></td>
    <td><input type="text" name="cabinet1_height" id="cabinet1_height" /></td>
    <td><input type="text" name="cabinet1_member" id="cabinet1_member" /></td>
    <td><input type="text" name="cabinet1_capacity" id="cabinet1_capacity" /></td>
  </tr>
</table>
</body>
</html>

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-04-12 15:44:26 By : joolawan
 


 

No. 4



โพสกระทู้ ( 1,322 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


Code (PHP)
 <input name="t1" type="text" id="t1" onfocus="sum()" onblur="sum()" onchange="sum()" onkeyup="sum()" value="0"/>
<br />
<input name="t2" type="text" id="t2" onfocus="sum()" onblur="sum()" onchange="sum()" onkeyup="sum()" value="0" />
<br />
<input name="t3" type="text" id="t3" onfocus="sum()" onblur="sum()" onchange="sum()" onkeyup="sum()" value="0"/>
</div>
<script language="javascript">
var obj= document.all;
function sum(){
obj.t3.value=parseInt(obj.t1.value)+parseInt(obj.t2.value);
}
</script>


Ref : https://www.thaicreate.com/php/forum/023969.html#3
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-04-12 15:54:58 By : pokultra
 


 

No. 5



โพสกระทู้ ( 332 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ยังไม่ได้เลยครับ งง ปวดหัวหมดเลย ล่าสุด ผมใช้ code นี้ครับ
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>การบรรจุตู้ในคอนเทรนเนอร์</title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.validationEngine.js"></script>
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" />
<script type="text/javascript">

function multi(express1,express2){
var get_total_wide=document.getElementById(express1).value;
var get_total_height=document.getElementById(express2).value;
var get_total_length=document.getElementById(total_length).value;

$total_capacity = get_total_wide;

return document.getElementById(express2).value=$total_capacity;
}
</script>
</head>

<body>
<table width="600" border="1">
<tr>
<th scope="row">ปริมาตรตู้</th>
<td>กว้าง</td>
<td>ยาว</td>
<td>สูง</td>
<td><p>จำนวนตู้</p></td>
<td>ปริมาตร</td>
</tr>
<tr>
<th scope="row"><form id="arrange_cabinet" name="arrange_cabinet" method="post" action="">
<label for="textfield"></label>
</form></th>

<td><input type="text" name="total_wide" id="total_wide" onkeyup="multi('total_wide','total_length');" /></td>
<td><input type="text" name="total_length" id="total_length" /></td>
<td><input type="text" name="total_height" id="total_height" /></td>
<td><input type="text" name="total_member" id="total_member" /></td>
<td><input type="text" name="total_capacity" id="total_capacity" /></td>
</tr>
<tr>
<th scope="row"><input type="text" name="textfield5" id="textfield5" /></th>
<td><input type="text" name="cabinet0_wide" id="cabinet0_wide" /></td>
<td><input type="text" name="cabinet0_length" id="cabinet0_length" /></td>
<td><input type="text" name="cabinet0_height" id="cabinet0_height" /></td>
<td><input type="text" name="cabinet0_member" id="cabinet0_member" /></td>
<td><input type="text" name="cabinet0_capacity" id="cabinet0_capacity" /></td>
</tr>
<tr>
<th scope="row"><input type="text" name="textfield10" id="textfield10" /></th>
<td><input type="text" name="cabinet1_wide" id="cabinet1_wide" /></td>
<td><input type="text" name="cabinet1_length" id="cabinet1_length" /></td>
<td><input type="text" name="cabinet1_height" id="cabinet1_height" /></td>
<td><input type="text" name="cabinet1_member" id="cabinet1_member" /></td>
<td><input type="text" name="cabinet1_capacity" id="cabinet1_capacity" /></td>
</tr>
</table>
</body>
</html>
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-04-12 17:08:25 By : joolawan
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : เป็นไปได้มั้ยครับ คือว่า ผมออกแบบโปรแกรม php น่ะครับ ให้รับค่า กว้าง ยาว สูง บนหน้าเวป แล้วมีคำสั่งอะไรบ้างน่ะครับ ที่ปริมาตร
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่