<? for($i=0;$i<count($_FILES["file"]["name"]);$i++) { if($_FILES["file"]["name"][$i] != "") { if(move_uploaded_file($_FILES["file"]["tmp_name"][$i],"upload2u/".$_FILES["file"]["name"][$i])) { echo "Copy/Upload Complete<br>"; } } }
<? for($i=0;$i<count($_FILES["file"]["name"]);$i++) { if($_FILES["file"]["name"][$i] != "") { if(move_uploaded_file($_FILES["file"]["tmp_name"][$i],"upload2u/".$_FILES["file"]["name"][$i])) { echo "Copy/Upload Complete<br>"; } } } ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <form action="addfile.php" method="post" enctype="multipart/form-data"> <table width="780" height="255" border="0"> <tr> <td valign="top"><div align="center"> <h1>upload</h1> </div> <div align="center"><table height="249" align="center" > <tr> <td width="218" align="right">Choose File: </td> <td width="218"><input type="file" name="file" id="file" /></td> </tr> <tr> <td align="right"><input type="submit" name="upload" id="upload" value="upload"/></td> <td><input type="reset" name="clear" id="clear" value="clear" /></td> </tr> <tr> <td align="center"> </td> <td> </td> </tr> </table> </td> </tr> </table>,</div> </form> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง