<form action="<? echo"$PHP_SELF";?>" method="post" > Title:<br> <textarea name="title" cols="80" rows="5"></textarea><p> <input type="submit" name="submit" value="ตกลง"/> <input type="reset" name="Reset" id="button" value="ยกเลิก" /> </form> <?php //รับข้อมูลจากฟอร์ม $title= $_POST['title']; $path ="text"; $Ftitle ="test.txt"; $fp1 = fopen($path."/".$Ftitle,"w"); $data1 = $title; fwrite($fp1,$data1); fclose($fp1); ?> <?php //ดึงไฟล์มาแสดงผล $Rpath = "text"; $Rtitle = "test.txt"; $Rfile1 = fopen($Rpath . "/" . $Rtitle, "r"); fpassthru($Rfile1); ?>
<?php //Get Form if(isset($_POST['title'])){ $title= $_POST['title']; $path ="text"; $Ftitle ="test.txt"; $fp1 = fopen($path."/".$Ftitle,"w"); $data1 = $title; fwrite($fp1,$data1); fclose($fp1); } ?> <?php //Read text $Rpath = "text"; $Rtitle = "test.txt"; $Rfile1 = fopen($Rpath . "/" . $Rtitle, "r"); fpassthru($Rfile1); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง