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 > java script ไม่ทำงาน!! ช่วยดูให้หน่อยนะครับ ทำไม่ได้สักที..-_-



 

java script ไม่ทำงาน!! ช่วยดูให้หน่อยนะครับ ทำไม่ได้สักที..-_-

 



Topic : 090467



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



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




ช่วยเช็คหน่อยนะครับ java script ไม่ทำงาน



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">
<script language="javascript">
function check() {
if(document.p1000.menu1.value=="") {
alert("กรุณาเลือก เมนูที่ 1 ด้วยครับ") ;
document.p1000.menu1.focus() ;
return false ;
}
else if(document.p1000.menu2.value=="") {
alert("กรุณาเลือก เมนูที่ 2 ด้วยครับ") ;
document.p1000.menu2.focus() ;
return false ;
}
else if(document.p1000.menu3.value=="") {
alert("กรุณาเลือก เมนูที่ 3 ด้วยครับ") ;
document.p1000.menu3.focus() ;
return false ;
}
else if(document.p1000.menu4.value=="") {
alert("กรุณาเลือก เมนูที่ 4 ด้วยครับ") ;
document.p1000.menu4.focus() ;
return false ;
}
else if(document.p1000.menu5.value=="") {
alert("กรุณาเลือก เมนูที่ 5 ด้วยครับ") ;
document.p1000.menu5.focus() ;
return false ;
}
else if(document.p1000.menu6.value=="") {
alert("กรุณาเลือก เมนูที่ 6 ด้วยครับ") ;
document.p1000.menu6.focus() ;
return false ;
}
else if(document.p1000.menu7.value=="") {
alert("กรุณาเลือก เมนูที่ 7 ด้วยครับ") ;
document.p1000.menu7.focus() ;
return false ;
}
else if(document.p1000.menu8.value=="") {
alert("กรุณาเลือก เมนูที่ 8 ด้วยครับ") ;
document.p1000.menu8.focus() ;
return false ;
}
else if(document.p1000.drink_price.value=="") {
alert("กรุณาเลือก เมนูเครื่องดื่ม ด้วยครับ") ;
document.p1000.drink_price.focus() ;
return false ;
}
else if(document.p1000.date.value=="") {
alert("กรุณาระบุ วันที่ ด้วยครับ") ;
document.p1000.date.focus() ;
return false ;
}
else if(document.p1000.txtTime.value=="") {
alert("กรุณาระบุ ช่วงเวลา ด้วยครับ") ;
document.p1000.txtTime.focus() ;
return false ;
}
else if(document.p1000.txtTatle.value=="") {
alert("กรุณากรอก จำนวนโต๊ะ ด้วยครับ") ;
document.p1000.txtTatle.focus() ;
return false ;
}
else if(document.p1000.Proviance.value=="") {
alert("กรุณาระบุ จังหวัด ด้วยครับ") ;
document.p1000.Proviance.focus() ;
return false ;
}

else if(document.p1000.District.value=="") {
alert("กรุณาระบุ อำเภอ ด้วยครับ") ;
document.p1000.District.focus() ;
return false ;
}
else if(document.p1000.Subdistrict.value=="") {
alert("กรุณาระบุ ตำบล ด้วยครับ") ;
document.p1000.Subdistrict.focus() ;
return false ;
}
else if(document.p1000.Postcode.value=="") {
alert("กรุณาระบุ รหัสไปรษณีย์ ด้วยครับ") ;
document.p1000.Postcode.focus() ;
return false ;
}
</script>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form action="accept_order.php"method="post"name='p1000' style='padding-top: 10px;'  onSubmit="JavaScript:return fncSubmit();">
  <table width="400" border="0" align="center">
<tr>
          <th width="344" height="53" valign="top" scope="col">เมนูราคา 1,000 บาท</th>
     </tr>
      <tr>
        <td>ราคาโต๊ะ 
          <label>
<select name="price" id="price">
  <option>1000</option>
</select>          
บาท</label></td>
      </tr>
       <tr>
          <td>เมนูที่ 1
       <select id="menu1" name="menu1">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
	$price= $_POST['price'];
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100001%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_array($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select>          </td>
       </tr>
        <tr>
          <td>เมนูที่ 2
        <select id="menu2"name="menu2">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100002%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 3
       <select id="menu3"name="menu3">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100003%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 4
        <select id="menu4"name="menu4">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100004%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 5
         <select id="menu5"name="menu5">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100005%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 6
        <select id="menu6"name="menu6">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100006%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 7
       <select id="menu7"name="menu7">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100007%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td height="31" valign="top">เมนูที่ 8
            <select id="menu8"name="menu8">
                <option value=""> ------- เลือกอาหาร------ </option>
                <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100008%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
            </select></td>
        </tr>
        <tr>
          <td height="44" valign="top">ชุดเครื่องดื่ม 
            <select id="drink"name="drink_price">
    	<option value=""> ------- เลือกเครื่องดื่ม------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						drink
					ORDER BY CONVERT(drink_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['drink_price'], '">', $row['drink_price'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td align="left"><label></label>
          
            <p><font face="MS Sans Serif">
              <b>วันที่ : </b></font>
                <input name="date" size="10"readonly="readonly"> 
                <a href="javascript:displayDatePicker('date')">
                <img border="0" src="images/formcal.gif" width="16" height="16"></a> </p></td>
        </tr>
        <tr>
          <td align="left"><label><strong><font face="MS Sans Serif">เวลา :</font></strong>
         <select name="txtTime" id="txtTime" style="width:100px;">
          <option value="0" selected="selected">-- เลือกเวลา --</option>
          <option value = '06:00.น - 12:00.น'>06:00.น - 12:00.น</option>
          <option value = '13:00.น - 17:00.น'>13:00.น - 17:00.น</option>
          <option value = '13:00.น - 17:00.น'>18:00.น - 22:00.น</option>                                       
           </select>
          </label></td>
        </tr>
        <tr>
          <td align="left">จำนวน
            <input name="txtNumtatle" type="text" id="txtNumtatle" style="width: 50px; margin-top: 10px; text-align:center;" />
            โต๊ะ (สั่งอย่างน้อย 10 โต๊ะ)</td>
        </tr>
      </table>
       <p>&nbsp;</p>
       <table width="400" border="0" align="center">
         <tr>
           <td colspan="2"><strong>สถานที่จัดส่งโต๊ะอาหาร</strong></td>
         </tr>
         <tr>
           <td width="187">ที่อยู่ :</td>
           <td width="429"><input name="address2" type="text" class="inputxx" id="address" size=20>
             *</td>
         </tr>
         <tr>
           <td>ถนน :</td>
           <td><input name="road2" type="text" class="inputxx" id="road" size=20></td>
         </tr>
         <tr>
           <td>จังหวัด</td>
           <td><select id="Proviance" name="Proviance">
    	<option value=""> ------- เลือก ------ </option>
    </select>*</td>
         </tr>
         <tr>
           <td>อำเภอ</td>
           <td> <select id="District"name="District">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitAmphur"></span>
            *</td>
         </tr>
         <tr>
           <td>ตำบล :</td>
           <td><select id="Subdistrict"name="Subdistrict">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitTumbon"></span>
            *</td>
         </tr>
         <tr>
           <td>รหัสไปรษณีย์ :</td>
           <td><select id="Postcode"name="Postcode">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitZipcode"></span>
            *</td>
         </tr>
            <tr>
           <td>โทรศัพท์ :</td>
           <td><input name="phone2" type="text" class="inputxx" id="phone2" size=30>
             *</td>
         </tr>
         <tr>
           <td>อีเมลล์ :</td>
           <td><input name="email2" type="text" id="email3" value="" size="30" / onblur="chkEmail()" class="inputxx"></td>
         </tr>
         <tr>
           <td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="สั่งจอง"onClick="this.form.action='accept_order.php'; submit()"></td>
         </tr>
       </table>
       <p>&nbsp;         </p>
       <p>
       </p>
</form>
</body>
</html>




Tag : JavaScript









ประวัติการแก้ไข
2013-02-07 12:39:17
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-02-07 12:37:05 By : itoo View : 945 Reply : 12
 

 

No. 1



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

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

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

เส้นผมบังภูเขาครับ
ผมใส่ย่อหน้าให้ดูล่ะกันครับ ว่ามันขาดอะไรไป

Code (JavaScript)
function check() {
	if(document.p1000.menu1.value=="") {
		alert("กรุณาเลือก เมนูที่ 1 ด้วยครับ") ;
		document.p1000.menu1.focus() ;
		return false ;
	}
	else if(document.p1000.menu2.value=="") {
		alert("กรุณาเลือก เมนูที่ 2 ด้วยครับ") ;
		document.p1000.menu2.focus() ;
		return false ;
	}
	else if(document.p1000.menu3.value=="") {
		alert("กรุณาเลือก เมนูที่ 3 ด้วยครับ") ;
		document.p1000.menu3.focus() ;
		return false ;
	}
	else if(document.p1000.menu4.value=="") {
		alert("กรุณาเลือก เมนูที่ 4 ด้วยครับ") ;
		document.p1000.menu4.focus() ;
		return false ;
	}
	else if(document.p1000.menu5.value=="") {
		alert("กรุณาเลือก เมนูที่ 5 ด้วยครับ") ;
		document.p1000.menu5.focus() ;
		return false ;
	}
	else if(document.p1000.menu6.value=="") {
		alert("กรุณาเลือก เมนูที่ 6 ด้วยครับ") ;
		document.p1000.menu6.focus() ;
		return false ;
	}
	else if(document.p1000.menu7.value=="") {
		alert("กรุณาเลือก เมนูที่ 7 ด้วยครับ") ;
		document.p1000.menu7.focus() ;
		return false ;
	}
	else if(document.p1000.menu8.value=="") {
		alert("กรุณาเลือก เมนูที่ 8 ด้วยครับ") ;
		document.p1000.menu8.focus() ;
		return false ;
	}
	else if(document.p1000.drink_price.value=="") {
		alert("กรุณาเลือก เมนูเครื่องดื่ม ด้วยครับ") ;
		document.p1000.drink_price.focus() ;
		return false ;
	}
	else if(document.p1000.date.value=="") {
		alert("กรุณาระบุ วันที่ ด้วยครับ") ;
		document.p1000.date.focus() ;
		return false ;
	}
	else if(document.p1000.txtTime.value=="") {
		alert("กรุณาระบุ ช่วงเวลา ด้วยครับ") ;
		document.p1000.txtTime.focus() ;
		return false ;
	}
	else if(document.p1000.txtTatle.value=="") {
		alert("กรุณากรอก จำนวนโต๊ะ ด้วยครับ") ;
		document.p1000.txtTatle.focus() ;
		return false ;
	}
	else if(document.p1000.Proviance.value=="") {
		alert("กรุณาระบุ จังหวัด ด้วยครับ") ;
		document.p1000.Proviance.focus() ;
		return false ;
	}

	else if(document.p1000.District.value=="") {
		alert("กรุณาระบุ อำเภอ ด้วยครับ") ;
		document.p1000.District.focus() ;
		return false ;
	}
	else if(document.p1000.Subdistrict.value=="") {
		alert("กรุณาระบุ ตำบล ด้วยครับ") ;
		document.p1000.Subdistrict.focus() ;
		return false ;
	}
	else if(document.p1000.Postcode.value=="") {
		alert("กรุณาระบุ รหัสไปรษณีย์ ด้วยครับ") ;
		document.p1000.Postcode.focus() ;
		return false ;
	}








แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 12:46:19 By : cookiephp
 


 

No. 2



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



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


ดูไม่ออกจริงๆ อ่า
ลองเปลี่ยนเป็น ซิงเกิลโขด ก็แล้ว เปลี่ยนเป็น else ก็แล้ว
ก็ยังไม่ได้ครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 21:10:28 By : itoo
 

 

No. 3



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

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

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

ลองใช้ document.getElementById('menu1').value แทน document.p1000.menu1.value
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 21:37:15 By : Krungsri
 


 

No. 4



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



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


ยังไม่ได้เลยอ่าครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 21:41:24 By : itoo
 


 

No. 5



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

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

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

ชื่อฟังก์ชั่น check()

แล้วตอนเรียกใช้ทำไมเป็น onSubmit="JavaScript:return fncSubmit();"

มันต้องเป็น onSubmit="JavaScript:return check();" หรือเปล่า
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 21:44:09 By : Krungsri
 


 

No. 6



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



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


ออ ช่ายครับ
แต่ก็ยังไม่ได้อีกตามเคยอ่าครับ

<script language="javascript">
function check() {
if(document.p1000.menu1.value=="") {
alert('กรุณาเลือก เมนูที่ 1 ด้วยครับ') ;
document.p1000.menu1.focus() ;
return false ;
}
else(document.p1000.menu2.value=="") {
alert('กรุณาเลือก เมนูที่ 2 ด้วยครับ') ;
document.p1000.menu2.focus() ;
return false ;
}
else(document.p1000.menu3.value=="") {
alert('กรุณาเลือก เมนูที่ 3 ด้วยครับ') ;
document.p1000.menu3.focus() ;
return false ;
}
else(document.p1000.menu4.value=="") {
alert('กรุณาเลือก เมนูที่ 4 ด้วยครับ') ;
document.p1000.menu4.focus() ;
return false ;
}
else(document.p1000.menu5.value=="") {
alert('กรุณาเลือก เมนูที่ 5 ด้วยครับ') ;
document.p1000.menu5.focus() ;
return false ;
}
else(document.p1000.menu6.value=="") {
alert('กรุณาเลือก เมนูที่ 6 ด้วยครับ') ;
document.p1000.menu6.focus() ;
return false ;
}
else(document.p1000.menu7.value=="") {
alert('กรุณาเลือก เมนูที่ 7 ด้วยครับ') ;
document.p1000.menu7.focus() ;
return false ;
}
else(document.p1000.menu8.value=="") {
alert('กรุณาเลือก เมนูที่ 8 ด้วยครับ') ;
document.p1000.menu8.focus() ;
return false ;
}
else(document.p1000.drink_price.value=="") {
alert('กรุณาเลือก เมนูเครื่องดื่ม ด้วยครับ') ;
document.p1000.drink_price.focus() ;
return false ;
}
else(document.p1000.date.value=="") {
alert('กรุณาระบุ วันที่ ด้วยครับ') ;
document.p1000.date.focus() ;
return false ;
}
else(document.p1000.txtTime.value=="") {
alert('กรุณาระบุ ช่วงเวลา ด้วยครับ') ;
document.p1000.txtTime.focus() ;
return false ;
}
else(document.p1000.txtTatle.value=="") {
alert('กรุณากรอก จำนวนโต๊ะ ด้วยครับ') ;
document.p1000.txtTatle.focus() ;
return false ;
}
else(document.p1000.Proviance.value=="") {
alert('กรุณาระบุ จังหวัด ด้วยครับ') ;
document.p1000.Proviance.focus() ;
return false ;
}

else(document.p1000.District.value=="") {
alert('กรุณาระบุ อำเภอ ด้วยครับ') ;
document.p1000.District.focus() ;
return false ;
}
else(document.p1000.Subdistrict.value=="") {
alert('กรุณาระบุ ตำบล ด้วยครับ') ;
document.p1000.Subdistrict.focus() ;
return false ;
}
else(document.p1000.Postcode.value=="") {
alert('กรุณาระบุ รหัสไปรษณีย์ ด้วยครับ') ;
document.p1000.Postcode.focus() ;
return false ;
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>index</title>
<style type="text/css">
<!--
body {
background-attachment:fixed; /*กำหนดให้ไม่เลื่อน*/
background-image:url(images/banner_01.jpg); /*ตำแหน่งของรูปภาพ*/
background-repeat: repeat-x; /* กำหนดการซ้ำของรูป */
}
.style4 {font-size: 14px; }
.style10 {font-size: 16px; font-weight: bold; color: #FFFFFF; }
-->
</style></head>
<body onLoad="Add();">
<table width="800" border="0" align="center" bordercolor="#F0F0F0" bgcolor="#FFFFFF">
<tr>
<th colspan="2" scope="col"><img src="images/head.jpg" width="965" height="29" /></th>
</tr>
<tr>
<td colspan="2"><img src="images/banner_04.jpg" width="964" height="197" /></td>
</tr>
<tr>
<td colspan="2"><a href="index.php"><img src="images/1.jpg" width="137" height="44"></a><a href="frm_register.php"><img src="images/5 .jpg" width="137" height="44"></a><a href="p_booking.php"><img src="images/2.jpg" width="137" height="44"></a><a href="p_payment.php"><img src="images/3.jpg" width="137" height="44"></a><a href="confirmpayment.php"><img src="images/4.jpg" width="137" height="44"></a><a href="Admin/Index.php"><img src="images/6.jpg" width="137" height="44"></a><a href="p_contact.php"><img src="images/7.jpg" width="143" height="44"></a></td>
</tr>
<tr>
<td width="246" height="469" valign="top"><table width="242" border="1">
<tr>
<th width="232" height="122" scope="col"><? echo "$showmember"; ?></th>
</tr>
<tr>
<td><table width="232" border="0">
<tr>
<th width="226" height="52" bgcolor="#000000" scope="col"><span class="style10">ราคาชุดอาหาร</span></th>
</tr>
<tr>
<td align="center"><img src="images/1000.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/1200.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/1400.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/1500.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/1700.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/1900.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/2200.jpg" alt="" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/drink.jpg" width="200" height="30"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="231" border="0">
<tr>
<th width="225" bgcolor="#000000" scope="col"><span class="style10">สาระน่ารู้</span></th>
</tr>
<tr>
<td align="center"><img src="images/ประวัติโต๊ะจีน.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/คำนวณโต๊ะจีน.jpg" width="200" height="30" /></td>
</tr>
<tr>
<td align="center"><img src="images/ติดต่อเรา.jpg" width="200" height="30" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="715" align="center" valign="top"><p>&nbsp;</p>
<p><img src="images/10.jpg" width="250" height="150"></p>
<p>&nbsp;</p>
<form action="accept_order.php"method="post"name='p1000' style='padding-top: 10px;' onSubmit="JavaScript:return check();">
<table width="400" border="0">
<tr>
<th width="344" height="53" valign="top" scope="col">เมนูราคา 1,000 บาท</th>
</tr>
<tr>
<td>ราคาโต๊ะ
<label>
<select name="price" id="price">
<option>1000</option>
</select>
บาท</label></td>
</tr>
<tr>
<td>เมนูที่ 1
<select id="menu1" name="menu1">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$price= $_POST['price'];
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100001%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_array($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select> </td>
</tr>
<tr>
<td>เมนูที่ 2
<select id="menu2"name="menu2">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100002%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td>เมนูที่ 3
<select id="menu3"name="menu3">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100003%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td>เมนูที่ 4
<select id="menu4"name="menu4">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100004%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td>เมนูที่ 5
<select id="menu5"name="menu5">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100005%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td>เมนูที่ 6
<select id="menu6"name="menu6">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100006%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td>เมนูที่ 7
<select id="menu7"name="menu7">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100007%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td height="31" valign="top">เมนูที่ 8
<select id="menu8"name="menu8">
<option value=""> ------- เลือกอาหาร------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
listfood
WHERE listfood_id LIKE '100008%'
ORDER BY CONVERT(listfood_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td height="44" valign="top">ชุดเครื่องดื่ม
<select id="drink"name="drink_price">
<option value=""> ------- เลือกเครื่องดื่ม------ </option>
<?php
$result = mysql_query("
SELECT *
FROM
drink
ORDER BY CONVERT(drink_id USING TIS620) ASC;");

while($row = mysql_fetch_assoc($result)){
echo '<option value="', $row['drink_price'], '">', $row['drink_price'],'</option>';
}
?>
</select></td>
</tr>
<tr>
<td align="left"><label></label>

<p><font face="MS Sans Serif">
<b>วันที่ : </b></font>
<input name="date" size="10"readonly="readonly">
<a href="javascript:displayDatePicker('date')">
<img border="0" src="images/formcal.gif" width="16" height="16"></a> </p></td>
</tr>
<tr>
<td align="left"><label><strong><font face="MS Sans Serif">เวลา :</font></strong>
<select name="txtTime" id="txtTime" style="width:100px;">
<option value="0" selected="selected">-- เลือกเวลา --</option>
<option value = '06:00.น - 12:00.น'>06:00.น - 12:00.น</option>
<option value = '13:00.น - 17:00.น'>13:00.น - 17:00.น</option>
<option value = '13:00.น - 17:00.น'>18:00.น - 22:00.น</option>
</select>
</label></td>
</tr>
<tr>
<td align="left">จำนวน
<input name="txtNumtatle" type="text" id="txtNumtatle" style="width: 50px; margin-top: 10px; text-align:center;" />
โต๊ะ (สั่งอย่างน้อย 10 โต๊ะ)</td>
</tr>
</table>
<p>&nbsp;</p>
<table width="400" border="0">
<tr>
<td colspan="2"><strong>สถานที่จัดส่งโต๊ะอาหาร</strong></td>
</tr>
<tr>
<td width="187">ที่อยู่ :</td>
<td width="429"><input name="address2" type="text" class="inputxx" id="address" size=20>
*</td>
</tr>
<tr>
<td>ถนน :</td>
<td><input name="road2" type="text" class="inputxx" id="road" size=20></td>
</tr>
<tr>
<td>จังหวัด</td>
<td><select id="Proviance" name="Proviance">
<option value=""> ------- เลือก ------ </option>
</select>*</td>
</tr>
<tr>
<td>อำเภอ</td>
<td> <select id="District"name="District">
<option value=""> ------- เลือก ------ </option>
</select><span id="waitAmphur"></span>
*</td>
</tr>
<tr>
<td>ตำบล :</td>
<td><select id="Subdistrict"name="Subdistrict">
<option value=""> ------- เลือก ------ </option>
</select><span id="waitTumbon"></span>
*</td>
</tr>
<tr>
<td>รหัสไปรษณีย์ :</td>
<td><select id="Postcode"name="Postcode">
<option value=""> ------- เลือก ------ </option>
</select><span id="waitZipcode"></span>
*</td>
</tr>
<tr>
<td>โทรศัพท์ :</td>
<td><input name="phone2" type="text" class="inputxx" id="phone2" size=30>
*</td>
</tr>
<tr>
<td>อีเมลล์ :</td>
<td><input name="email2" type="text" id="email3" value="" size="30" / onblur="chkEmail()" class="inputxx"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="สั่งจอง"onClick="this.form.action='accept_order.php'; submit()"></td>
</tr>
</table>
<p>&nbsp; </p>
<p>
</p>
</form> <p>&nbsp;</p></td>
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 21:54:07 By : itoo
 


 

No. 7



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

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

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


เอาไปเลยครับ จัดให้และ
<!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">
<script language="javascript">
function check() {
if(document.p1000.menu1.value=="") {
alert("กรุณาเลือก เมนูที่ 1 ด้วยครับ") ;
document.p1000.menu1.focus() ;
return false ;
}
else if(document.p1000.menu2.value=="") {
alert("กรุณาเลือก เมนูที่ 2 ด้วยครับ") ;
document.p1000.menu2.focus() ;
return false ;
}
else if(document.p1000.menu3.value=="") {
alert("กรุณาเลือก เมนูที่ 3 ด้วยครับ") ;
document.p1000.menu3.focus() ;
return false ;
}
else if(document.p1000.menu4.value=="") {
alert("กรุณาเลือก เมนูที่ 4 ด้วยครับ") ;
document.p1000.menu4.focus() ;
return false ;
}
else if(document.p1000.menu5.value=="") {
alert("กรุณาเลือก เมนูที่ 5 ด้วยครับ") ;
document.p1000.menu5.focus() ;
return false ;
}
else if(document.p1000.menu6.value=="") {
alert("กรุณาเลือก เมนูที่ 6 ด้วยครับ") ;
document.p1000.menu6.focus() ;
return false ;
}
else if(document.p1000.menu7.value=="") {
alert("กรุณาเลือก เมนูที่ 7 ด้วยครับ") ;
document.p1000.menu7.focus() ;
return false ;
}
else if(document.p1000.menu8.value=="") {
alert("กรุณาเลือก เมนูที่ 8 ด้วยครับ") ;
document.p1000.menu8.focus() ;
return false ;
}
else if(document.p1000.drink_price.value=="") {
alert("กรุณาเลือก เมนูเครื่องดื่ม ด้วยครับ") ;
document.p1000.drink_price.focus() ;
return false ;
}
else if(document.p1000.date.value=="") {
alert("กรุณาระบุ วันที่ ด้วยครับ") ;
document.p1000.date.focus() ;
return false ;
}
else if(document.p1000.txtTime.value=="") {
alert("กรุณาระบุ ช่วงเวลา ด้วยครับ") ;
document.p1000.txtTime.focus() ;
return false ;
}
else if(document.p1000.txtTatle.value=="") {
alert("กรุณากรอก จำนวนโต๊ะ ด้วยครับ") ;
document.p1000.txtTatle.focus() ;
return false ;
}
else if(document.p1000.Proviance.value=="") {
alert("กรุณาระบุ จังหวัด ด้วยครับ") ;
document.p1000.Proviance.focus() ;
return false ;
}

else if(document.p1000.District.value=="") {
alert("กรุณาระบุ อำเภอ ด้วยครับ") ;
document.p1000.District.focus() ;
return false ;
}
else if(document.p1000.Subdistrict.value=="") {
alert("กรุณาระบุ ตำบล ด้วยครับ") ;
document.p1000.Subdistrict.focus() ;
return false ;
}
else if(document.p1000.Postcode.value=="") {
alert("กรุณาระบุ รหัสไปรษณีย์ ด้วยครับ") ;
document.p1000.Postcode.focus() ;
return false ;
}
document.p1000.submit();
}
</script>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form action="accept_order.php" method="post" name='p1000' style='padding-top: 10px;'  onSubmit="JavaScript:return check();">
  <table width="400" border="0" align="center">
<tr>
          <th width="344" height="53" valign="top" scope="col">เมนูราคา 1,000 บาท</th>
     </tr>
      <tr>
        <td>ราคาโต๊ะ 
          <label>
<select name="price" id="price">
  <option>1000</option>
</select>          
บาท</label></td>
      </tr>
       <tr>
          <td>เมนูที่ 1
       <select id="menu1" name="menu1">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
	$price= $_POST['price'];
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100001%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_array($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select>          </td>
       </tr>
        <tr>
          <td>เมนูที่ 2
        <select id="menu2" name="menu2">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100002%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 3
       <select id="menu3" name="menu3">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100003%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 4
        <select id="menu4" name="menu4">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100004%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 5
         <select id="menu5" name="menu5">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100005%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 6
        <select id="menu6" name="menu6">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100006%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td>เมนูที่ 7
       <select id="menu7" name="menu7">
    	<option value=""> ------- เลือกอาหาร------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100007%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td height="31" valign="top">เมนูที่ 8
            <select id="menu8" name="menu8">
                <option value=""> ------- เลือกอาหาร------ </option>
                <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						listfood
				WHERE listfood_id LIKE '100008%' 
				ORDER BY CONVERT(listfood_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['listfood_name'], '">', $row['listfood_name'],'</option>';
			}
		?>
            </select></td>
        </tr>
        <tr>
          <td height="44" valign="top">ชุดเครื่องดื่ม 
            <select id="drink" name="drink_price">
    	<option value=""> ------- เลือกเครื่องดื่ม------ </option>
        <?php
		  			$result = mysql_query("
				SELECT  *
				FROM 
						drink
					ORDER BY CONVERT(drink_id USING TIS620) ASC;");
			
			while($row = mysql_fetch_assoc($result)){
				echo '<option value="', $row['drink_price'], '">', $row['drink_price'],'</option>';
			}
		?>
    </select></td>
        </tr>
        <tr>
          <td align="left"><label></label>
          
            <p><font face="MS Sans Serif">
              <b>วันที่ : </b></font>
                <input name="date" size="10" readonly="readonly"> 
                <a href="javascript:displayDatePicker('date')">
                <img border="0" src="images/formcal.gif" width="16" height="16"></a> </p></td>
        </tr>
        <tr>
          <td align="left"><label><strong><font face="MS Sans Serif">เวลา :</font></strong>
         <select name="txtTime" id="txtTime" style="width:100px;">
          <option value="0" selected="selected">-- เลือกเวลา --</option>
          <option value = '06:00.น - 12:00.น'>06:00.น - 12:00.น</option>
          <option value = '13:00.น - 17:00.น'>13:00.น - 17:00.น</option>
          <option value = '13:00.น - 17:00.น'>18:00.น - 22:00.น</option>                                       
           </select>
          </label></td>
        </tr>
        <tr>
          <td align="left">จำนวน
            <input name="txtNumtatle" type="text" id="txtNumtatle" style="width: 50px; margin-top: 10px; text-align:center;" />
            โต๊ะ (สั่งอย่างน้อย 10 โต๊ะ)</td>
        </tr>
      </table>
       <p>&nbsp;</p>
       <table width="400" border="0" align="center">
         <tr>
           <td colspan="2"><strong>สถานที่จัดส่งโต๊ะอาหาร</strong></td>
         </tr>
         <tr>
           <td width="187">ที่อยู่ :</td>
           <td width="429"><input name="address2" type="text" class="inputxx" id="address" size=20>
             *</td>
         </tr>
         <tr>
           <td>ถนน :</td>
           <td><input name="road2" type="text" class="inputxx" id="road" size=20></td>
         </tr>
         <tr>
           <td>จังหวัด</td>
           <td><select id="Proviance" name="Proviance">
    	<option value=""> ------- เลือก ------ </option>
    </select>*</td>
         </tr>
         <tr>
           <td>อำเภอ</td>
           <td> <select id="District"name="District">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitAmphur"></span>
            *</td>
         </tr>
         <tr>
           <td>ตำบล :</td>
           <td><select id="Subdistrict"name="Subdistrict">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitTumbon"></span>
            *</td>
         </tr>
         <tr>
           <td>รหัสไปรษณีย์ :</td>
           <td><select id="Postcode"name="Postcode">
    	<option value=""> ------- เลือก ------ </option>
    </select><span id="waitZipcode"></span>
            *</td>
         </tr>
            <tr>
           <td>โทรศัพท์ :</td>
           <td><input name="phone2" type="text" class="inputxx" id="phone2" size=30>
             *</td>
         </tr>
         <tr>
           <td>อีเมลล์ :</td>
           <td><input name="email2" type="text" id="email3" value="" size="30" / onblur="chkEmail()" class="inputxx"></td>
         </tr>
         <tr>
           <td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="สั่งจอง"></td>
         </tr>
       </table>
       <p>&nbsp;         </p>
       <p>
       </p>
</form>
</body>
</html>

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 22:23:22 By : weaned
 


 

No. 8



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



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


ขอบคุณมากๆ เลยครับ
ใช้ได้แล้ว
แต่ว่า ตั้งแต่ตรง เลือกช่วงเวลาลงมา ไม่ทำงานอ่าครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 22:44:46 By : itoo
 


 

No. 9



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

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

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


เอาไปใส่ตรงเลือกช่วงเวลา
         <select name="txtTime" id="txtTime" style="width:100px;">
          <option value="" selected="selected">-- เลือกเวลา --</option>
          <option value = '06:00.น - 12:00.น'>06:00.น - 12:00.น</option>
          <option value = '13:00.น - 17:00.น'>13:00.น - 17:00.น</option>
          <option value = '13:00.น - 17:00.น'>18:00.น - 22:00.น</option>                                       
           </select>

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-07 23:00:45 By : weaned
 


 

No. 10



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



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


โทษทีนะครับ ผมไม่ค่อยเข้าใจเรื่อง javascript เท่าไหร่ จับ error ไม่ค่อยได้ครับ
ถ้าตามความเข้าใจ ผมคิดว่าโค้ดถูกแล้ว แต่มันใช้งานไม่ได้
ตรง
.
.
.
.
}
else if(document.p1000.txtTatle.value=="") {
alert("กรุณากรอก จำนวนโต๊ะ ด้วยครับ") ;
document.p1000.txtTatle.focus() ;
return false ;
}
else if(document.p1000.Proviance.value=="") {
alert("กรุณาระบุ จังหวัด ด้วยครับ") ;
document.p1000.Proviance.focus() ;
return false ;
}

else if(document.p1000.District.value=="") {
alert("กรุณาระบุ อำเภอ ด้วยครับ") ;
document.p1000.District.focus() ;
return false ;
}
else if(document.p1000.Subdistrict.value=="") {
alert("กรุณาระบุ ตำบล ด้วยครับ") ;
document.p1000.Subdistrict.focus() ;
return false ;
}
else if(document.p1000.Postcode.value=="") {
alert("กรุณาระบุ รหัสไปรษณีย์ ด้วยครับ") ;
document.p1000.Postcode.focus() ;
return false ;
}
document.p1000.submit();
}
</script>
รบกวนช่วยดูให้อีกทีนะครับ
ถ้าแก้ไขได้แล้ว รบกวนอธิบายให้ผมกระจ่างหน่อยนะครับ จะได้ไม่พลาดตรงนี้อีก
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-08 00:10:42 By : itoo
 


 

No. 11



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

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

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


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

ปล.ถ้าถามโค๊ดด้านบนผมอธิบายไม่ได้ อิอิ

if(document.p1000.Proviance.value=="") { //p1000 ชื่อ form , province ชื่อตัวแปรที่ส่งค่า
alert("กรุณาระบุ จังหวัด ด้วยครับ") ;               //ถ้าตรงตามเงื่อนไขก็แสดงข้อความ
document.p1000.Proviance.focus() ;         // อันนี้น่าจะเป็นการจัดจุดของฟอร์มที่กรอกมั้ง
return false ;                                              // แสดงค่า
}
document.p1000.submit(); // เมื่อกด submit ให้เช็ค form มั้ง


ผมอธิบายไม่ถูก มันเป็นความเคยชินเลยแก้ปัญหาได้


แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-08 00:25:19 By : weaned
 


 

No. 12



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



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


ยังใช้งานไม่ได้เลยอ่าาาา..
ยังไม่สามารถเช็ค
-จำนวนโต๊ะ
-ที่อยู่
-จังหวัด
-อำเภอ
-ตำบล
-รหัสไปรษณีย์
ผิดตรงไหนง่าาา..
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-02-08 00:40:42 By : itoo
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : java script ไม่ทำงาน!! ช่วยดูให้หน่อยนะครับ ทำไม่ได้สักที..-_-
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 อัตราราคา คลิกที่นี่