|
 |
|
ช่วยดูหน่อยครับ ว่าผิดตรงไหน เรื่อง Upload File ช่วยดูหน่อยครับ ว่าผิดตรงไหน พอ upload แล้ว |
|
 |
|
|
 |
 |
|
ลองเอา @ ออกแล้วครับ ไม่มี error
เอ๊ะ หรือว่ามันเกี่ยวกันไหมครับ เพราะ code ทั้งหมดอยู่ที่หน้า popup นะครับ
|
 |
 |
 |
 |
Date :
2009-10-15 14:28:20 |
By :
เนส |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองคำสั่งง่าย ๆ ก่อนครับว่ามันไปหรือเปล่า
Code (PHP)
copy($_FILES['fileupload']['tmp_name'],$_FILES['fileupload']['name']);
|
 |
 |
 |
 |
Date :
2009-10-15 18:02:25 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองทำตามที่พี่วินบอกแล้วนะครับ ยังไม่ได้เลยครับ
|
 |
 |
 |
 |
Date :
2009-10-16 12:08:16 |
By :
เนส |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
print_r($_FILES); มีค่าใน array ไหม
echo ดูข้างใน If ว่ามันเข้าเงื่อนไขหรือเปล่า
|
 |
 |
 |
 |
Date :
2009-10-16 12:31:59 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมลอง
Code (PHP)
if($_FILES["fileupload"]["name"])
{
echo "Have File";
}else{
echo "No File";
}
มันจะขึ้น No File ตลอดครับ ผมหล่ะงง
|
 |
 |
 |
 |
Date :
2009-10-16 12:53:53 |
By :
เนส |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
วะวะวะวะว๊าาาวววว พี่วินตาดี 
|
 |
 |
 |
 |
Date :
2009-10-16 12:57:47 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอ๊วววว ได้แล้วครับ ขอบคุณมากครับ พี่วิน กับ พี่ PlaKriM ผมโง่เอง ไม่ละเอียดพอ
แต่มีเรื่องถามต่ออีกนิดครับ คือตัวนี้ ผมทำเป็น popup ทีนี้ ผมอยากจะส่งชื่อของไฟล์ ไปที่ textBox ที่ชื่อ FileName ในหน้าหลัก ต้องเขียนเพิ่มยังไงครับ
|
 |
 |
 |
 |
Date :
2009-10-16 13:04:08 |
By :
เนส |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่มเติมครับ คือ อยากได้ พอกด upload แล้วก็ให้ส่งชื่อไฟล์ไปที่ textBox ที่ชื่อ FileName พร้อมปิด popup อัตโนมัต ครับ ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-10-16 13:06:25 |
By :
เนส |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สมัครสมาชิกแล้ว Login ก่อนน่ะครับ เดียวจะมาตอบครับ 
|
 |
 |
 |
 |
Date :
2009-10-16 13:11:01 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2009-10-16 13:18:03 |
By :
pokultra |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สมัครแล้วครับ ช่วยตอบด้วยนะครับ พี่วิน
|
 |
 |
 |
 |
Date :
2009-10-16 13:41:37 |
By :
Snapters |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
555 ตามทีคิดไว้ไม่มีผิด
ผมก็เคยมีปัญหาแบบนี้
สุดท้าย ใช้การ print_r($_FILES); กลับ ไม่มีอะไรเลย
เลยไปดูที่ฟอร์ม อ้าว ลืมซ่ะงั้น หุหุ
|
 |
 |
 |
 |
Date :
2009-10-16 13:44:00 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
  
|
 |
 |
 |
 |
Date :
2009-10-19 10:54:48 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ง่ะ สงสัยงานยุ่งกัน
|
 |
 |
 |
 |
Date :
2009-10-19 13:37:28 |
By :
Snapters |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|