<table width="637"> <tr> <td width="454" align="right"> <a href="petition_doc.php?text=<?_POST['search'];?>"> <imgsrc="images/search-icon.png" alt="ค้นหา" /></a> </td> <td width="167"><input type="text" name="search" id="search" class="input_1" /></td> </tr> </table>
<a href="petition_doc.php?text=<?=$_POST['search'];?>">
<input name="search" type="text" id="search"> <input name="Button" type="Button" id="Button" value="Search" onClick="gotoSearch()"> <script> function gotoSearch(){ var keyword=document.getElementById("search").value window.location='petition_doc.php?text='+keyword; } </script>
Quote:<table width="637"> <tr> <td width="454" align="right"> <a href="petition_doc.php?text=<?_POST['search'];?>"> <imgsrc="images/search-icon.png" alt="ค้นหา" /></a> </td> <td width="167"><input type="text" name="search" id="search" class="input_1" /></td> </tr> </table>
<img src="images/search-icon.png" alt="ค้นหา" /> // imgsrc ติดกัน
if($_POST['search']){ $page=1; $sql = "select * from gm_tumbon where TUMBON_ID ='".$_POST['search']."' or TUMBON_NAME ='".$_POST['search']."'"; $result = $control->Query($sql); $count = $result['count']; $list=$control->Query($sql); } else{ $sql = "select * from gm_tumbon order BY TUMBON_ID ASC"; $_SESSION['all']=$sql; $result = $control->Query($sql); $count = $result['count']; $_SESSION['paging']=$sql; $list=$control->Query($sql); }
$sql = "select * from gm_tumbon where TUMBON_ID LIKE '%".$_POST['search']."%' or TUMBON_NAME LIKE '%".$_POST['search']."%'";
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง