Quote:
quote:Originally posted by superdos
Its only upload the binary data but not the file name,size & type, can anyone tell my why
|
You're using the wrong superglobal to access the data contained in the file. use the $_FILES superglobal, which is where information about the uploaded file is kept once the file reaches the server.
I wrote a tutorial on this exact topic, have a read of it:
http://p2p.wrox.com/topic.asp?TOPIC_ID=11883
You have a few other errors as well, $PHP_SELF isn't available if register_globals is turned off, you must access this from its superglobal array.. $_SERVER['PHP_SELF']
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::