<tr> <td>Type :</td> <td> <select name="type" id="type"/> <option id="1" value="M01">(M01) Outsource</option> <option id="2" value="M02">(M02) Phone & Remote Support (CRM)</option> <option id="3" value="M03">(M03) Onsite Support (CRM)</option> <option id="4" value="M04">(M04) Preventive Maintenance</option> <option id="5" value="M05">(M05) Planning Project</option> <option id="6" value="M06">(M06) Tacking Job</option> <option id="7" value="M07">(M07) Meeting</option> <option id="8" value="I01">(I01) New Installation</option> <option id="9" value="I02">(I02) Testing</option> <option id="10" value="I03">(I03) Presale</option> <option id="11" value="I04">(I04) Trainer (internal/external)</option> <option id="12" value="I05">(I05) Training (internal/external)</option> <option id="13" value="T01">(T01) Other</option></td> </tr> <?php if($id == "1") { <tr> <td>Name Customer :</td> <td> <td><input name="title" size="40" id="title"/></td> </tr> } ?>
<script> function dourl(vals) { location.href='your_page.php?type='+vals; } </script> <select name="ddl" id="ddl" onchange="dourl(this.value)"> <option value="1">A1</option> <option value="2">A2</option> </select> <?php if(!empty($_GET['type'])){ if($_GET['type']==1){ //do something }else if($_GET['type']==2){ //do something } } ?>
<tr> <td>Type :</td> <td> <select name="type" id="type"/> <option id="1" value="M01">(M01) Outsource</option> <option id="2" value="M02">(M02) Phone & Remote Support (CRM)</option> <option id="3" value="M03">(M03) Onsite Support (CRM)</option> <option id="4" value="M04">(M04) Preventive Maintenance</option> <option id="5" value="M05">(M05) Planning Project</option> <option id="6" value="M06">(M06) Tacking Job</option> <option id="7" value="M07">(M07) Meeting</option> <option id="8" value="I01">(I01) New Installation</option> <option id="9" value="I02">(I02) Testing</option> <option id="10" value="I03">(I03) Presale</option> <option id="11" value="I04">(I04) Trainer (internal/external)</option> <option id="12" value="I05">(I05) Training (internal/external)</option> <option id="13" value="T01">(T01) Other</option></td> </tr> <script> function myFunction() { var x = document.getElementById("id"); x.value = x.value.toUpperCase(); } </script> <?php if($nc == "M01") { echo '<table> <tr> <td>Name Customer :</td> <td> <td><input name="name_customer" size="40" id="name_customer"/></td> </tr> </table>' } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> New Document </title> <script language="JavaScript"> <!-- function showTextBox(obj) { if (obj.value == "M01") { document.getElementById("lyCustomer").style.display = ""; } else { document.getElementById("lyCustomer").style.display = "none"; } } //--> </script> </head> <body> <select name="type" id="type" onchange="showTextBox(this);"> <option id="0" value="">-- Selected --</option> <option id="1" value="M01">(M01) Outsource</option> <option id="2" value="M02">(M02) Phone & Remote Support (CRM)</option> <option id="3" value="M03">(M03) Onsite Support (CRM)</option> <option id="4" value="M04">(M04) Preventive Maintenance</option> <option id="5" value="M05">(M05) Planning Project</option> <option id="6" value="M06">(M06) Tacking Job</option> <option id="7" value="M07">(M07) Meeting</option> <option id="8" value="I01">(I01) New Installation</option> <option id="9" value="I02">(I02) Testing</option> <option id="10" value="I03">(I03) Presale</option> <option id="11" value="I04">(I04) Trainer (internal/external)</option> <option id="12" value="I05">(I05) Training (internal/external)</option> <option id="13" value="T01">(T01) Other</option> </select> <table id="lyCustomer" style="display: none;"> <tr> <td>Name Customer :</td> <td><input name="title" size="40" id="title"/></td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง