<?php include("../login.inc.php") ; ?> <html> <head> <title>test</title> </head> <body> <form action="test.php?c_data=<?=$_GET["c_data"];?>&Action=commet" method="post" name="frmMain" id="frmMain"> <table width="599" border="1"> <tr> <th>test <input name="c_data" type="text" id="c_data" value="<?=$_GET["c_data"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["Action"] == "commet") { $strSQL = "INSERT INTO chat "; $strSQL .="(c_data,c_mem) "; $strSQL .="VALUES "; $strSQL .="('".$_GET["c_data"]."','".$id."') "; $objQuery = mysql_query($strSQL); } ?> </table> </body> </html>
echo '<pre>', print_r($_GET, true), '</pre>';
<?php include("../login.inc.php") ; ?> <html> <head> <title>test</title> </head> <body> <form action="test.php" method="post" name="frmMain" id="frmMain"> <table width="599" border="1"> <tr> <th>test <input name="c_data" type="text" id="c_data"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_POST["c_data"] != "") { $strSQL = "INSERT INTO chat "; $strSQL .="(c_data,c_mem) "; $strSQL .="VALUES "; $strSQL .="('".$_GET["c_data"]."','".$id."') "; $objQuery = mysql_query($strSQL); } ?> </table> </body> </html>
<?php include("../login.inc.php") ; ?> <html> <head> <title>test</title> </head> <body> <form action="test.php?Action=chat" method="post" name="frmMain" id="frmMain"> <table width="599" border="1"> <tr> <th>test <input name="c_data" type="text" id="c_data" value=""> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["Action"] == "chat") { $c_data = $_POST[c_data] ; $strSQL = "INSERT INTO chat "; $strSQL .="(c_data,c_mem) "; $strSQL .="VALUES "; $strSQL .="('".$c_data."','".$id."') "; $objQuery = mysql_query($strSQL); } ?> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง