<form action="" method="get" enctype="multipart/form-data" name="form1" id="form1"> <label> <input type="file" name="upload" id="upload" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ,application/xml" onclick="document.form1.btnsubmit.disabled=false;"/> <button type="submit" name="btnsubmit" id="btnsubmit" disabled >Upload Excel</button> </label> </form> /** PHPExcel */ require_once 'Classes/PHPExcel.php'; /** PHPExcel_IOFactory - Reader */ include 'Classes/PHPExcel/IOFactory.php'; $inputFileName = $upload; $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objReader->setReadDataOnly(true); $objPHPExcel = $objReader->load($inputFileName);
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง