<!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> <form id="form1" name="form1" method="post" action=""> <label> <input type="text" name="name" id="name" /> </label> <input type="submit" name="button" id="button" value="เพิ่ม" /> </form> </br> <form id="form2" name="form2" method="post" action=""> <table width="258" border="1"> <tr> <td width="69">ลำดับ</td> <td width="140">อาการเสีย</td> <td width="27">วิธีการ</td> </tr> <tr> <td>1</td> <td>จอเสีย</td> <td>แก้ไข</td> </tr> <tr> <td>2</td> <td>กล้องหน้าเสีย</td> <td>แก้ไข</td> </tr> <tr> <td>3</td> <td>กล้องหลังเสีย</td> <td>แก้ไข</td> </tr> </table> <input type="submit" name="button2" id="button2" value="ตกลง" /> </form> <p> </p> </body> </html>
<!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> <form id="form1" name="form1" target="fix_frame" method="post" action=""> <label> <input type="text" name="name" id="name" /> </label> <input type="hidden" name="jobid" value="เอาจ๊อบไอดีมาใส่ตรงนี้ค่ะ" /> <input type="submit" name="submitButton" id="button" value="เพิ่ม" /> </form> </br> <iframe name="fix_frame" src="fix_items.php" width="900" height="200"></iframe> </body> </html>
<form id="form2" name="form2" method="post" action=""> <table width="258" border="1"> <tr> <td width="69">ลำดับ</td> <td width="140">อาการเสีย</td> <td width="27">วิธีการ</td> </tr> <?php if(isset($_POST["submitButton"],$_POST["name"],$_POST["jobid"]) && !empty($_POST["name"]) && !empty($_POST["jobid"])){ $sql="insert into tb(jobid,name) values('{$_POST["jobid"]}','{$_POST["name"]}') "; $result = mysql_query($sql) or die(mysql_error()); $n=1; $sql = "select * from tb where jobid='{$_POST["jobid"]}' "; $result = mysql_query($sql) or die(mysql_error()); while($data=mysql_fetch_assoc($result)){ echo "<tr> <td>$n</td><td>{$data["name"]}</td> <td>แก้ไข</td> </tr>"; $n++; } </table> <input type="submit" name="button2" id="button2" value="ตกลง" /> </form> <?php } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง