<script language="javascript"> function SubmitMe(){ if(document.formSearch.wordsearch.value == "0") {alert('กรุณาใส่คำค้น'); document.formSearch.a.focus(); return false; } if(document.formSearch.wordsearch.value == "MAUTHOR") { document.all.spName1.style.display=''; document.formSearch.MAUTHOR.value=document.formSearch.a.value }else{ document.all.spName1.style.display='none'; } if(document.formSearch.wordsearch.value == "MTITLE") { document.all.spName2.style.display=''; document.formSearch.MTITLE.value=document.formSearch.a.value }else{ document.all.spName2.style.display='none'; } if(document.formSearch.wordsearch.value == "MISBN") { document.all.spName3.style.display=''; document.formSearch.MISBN.value=document.formSearch.a.value }else{ document.all.spName3.style.display='none'; } if(document.formSearch.wordsearch.value == "MCALLNUM") { document.all.spName4.style.display=''; document.formSearch.MCALLNUM.value=document.formSearch.a.value }else{ document.all.spName4.style.display='none'; } if(document.formSearch.wordsearch.value == "MSUBJECT") { document.all.spName5.style.display=''; document.formSearch.MSUBJECT.value=document.formSearch.a.value }else{ document.all.spName5.style.display='none'; } if(document.formSearch.wordsearch.value == "MDESCRIPTION") { document.all.spName6.style.display=''; document.formSearch.MDESCRIPTION.value=document.formSearch.a.value }else{ document.all.spName6.style.display='none'; } } </script> <form name="formSearch" method="POST" action="http://medline.lib.buu.ac.th/edu/searching.php" onsubmit="return SubmitMe()"> <!--<form name="formSearch" method="post"action="http://medline.lib.buu.ac.th/edu/searching.php" onsubmit="return SubmitMe()"> --> <input name="a" type="text" style='background-color:#FFFFCC; color:#0000FF;'> <label> <select name="wordsearch" id="wordsearch" style='background-color:#FFFF99; color:#0000FF;'> <option value="0">กรุณาเลือก</option> <option value="MAUTHOR">ผู้แต่ง</option> <option value="MTITLE">ชื่อเรื่อง</option> <option value="MISBN">ISBN/ISSN</option> <option value="MCALLNUM">เลขเรียก</option> <option value="MSUBJECT">หัวเรื่อง</option> <option value="MDESCRIPTION">คำสำคัญ</option> </select> </label> <input type="submit" value="ค้นหา" style='background-color:#5E3301; color:#FFFFFF; font-weight: bold;'> <span id="spName1" style="display:none;"><input id="MAUTHOR" name="MAUTHOR" type="hidden" value=""></span> <span id="spName2" style="display:none;"><input id="MTITLE" name="MTITLE" type="hidden" value=""></span> <span id="spName3" style="display:none;"><input id="MISBN" name="MISBN" type="hidden" value=""></span> <span id="spName4" style="display:none;"><input id="MCALLNUM" name="MCALLNUM" type="hidden" value=""></span> <span id="spName5" style="display:none;"><input id="MSUBJECT" name="MSUBJECT" type="hidden" value=""></span> <span id="spName6" style="display:none;"><input id="MDESCRIPTION" name="MDESCRIPTION" type="hidden" value=""></span> </form>
<script language="javascript"> function SubmitMe(){ if(document.formSearch.wordsearch.value == "0") {alert('¡ÃسÒãÊè¤Ó¤é¹'); document.formSearch.a.focus(); return false; } </script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <form name="formSearch" method="POST" action="a.php" onsubmit="return SubmitMe()"> <input name="wordsearch" id="wordsearch" type="text" style='background-color:#FFFFCC; color:#0000FF;'> <input type="submit" value="search" style='background-color:#5E3301; color:#FFFFFF; font-weight: bold;'> </form> </html>
<?php $text = $_POST['wordsearch']; header("Location: http://www.kangtung.com/?s=".$text.""); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <script language="javascript"> function fncSubmit() { if(document.formSearch.wordsearch.value == "") { alert('กรุณาใส่คำค้นด้วยจ้าาาาา'); document.formSearch.wordsearch.focus(); return false; } document.formSearch.submit(); } </script> <body> <form name="formSearch" method="POST" action="b.php" onsubmit="return fncSubmit()"> <input name="wordsearch" id="wordsearch" type="text" style='background-color:#FFFFCC; color:#0000FF;'> <input type="submit" value="search" style='background-color:#5E3301; color:#FFFFFF; font-weight: bold;'> </form> </body> </html>
<? $text = $_POST['wordsearch']; header("Location: a.php?s=".$text.""); ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> </body> </html>
<html> <head> <title>ThaiCreate.Com PHP & MySQL Tutorial</title> <meta http-equiv=Content-Type content="text/html; charset=tis-620"> </head> <body> <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Keyword <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["txtKeyword"] != "") { $objConnect = mysql_connect("localhost","root","9143130") or die("Error Connect to Database"); $objDB = mysql_select_db("food"); mysql_query("SET NAMES TIS620"); // Search By Name or Email $strSQL = "SELECT * FROM dbfood WHERE (name LIKE '%".$_GET["txtKeyword"]."%' or name LIKE '%".$_GET["txtKeyword"]."%' )"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); ?> <table width="600" border="1"> <tr> <th width="91"> <div align="center">name </div></th> <th width="91"> <div align="center">where </div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=$objResult["name"];?></div></td> <td><div align="center"><?=$objResult["where"];?></div></td> </tr> <? } ?> </table> <? mysql_close($objConnect); } ?> </body> </html>
<tr> <td><div align="center"><?=$objResult["name"];?></div></td> <td><div align="center"><a href="<?=$objResult["where"];?>"><?=$objResult["where"];?></a></div></td> </tr>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง