Problem: when uploading, variable is empty
Posted: Mon Oct 06, 2003 2:04 pm
I've got a problem when uploading files, hope somebody can help me (please). Here's the thing:
I made a PHP/HTML for uploading file, and it's sorta like this:
Well, when i "upload", the variable $arquivo (which should correspond to the input 'arquivo' described above) is empty. In PHP, when i do (right after the "upload"):
I get the value 'none'. When i do:
or:
I get nothing (blank).
Please, this is driving me nuts... any help is much appreciated.
Thanks,
Victor.
I made a PHP/HTML for uploading file, and it's sorta like this:
Code: Select all
<form name=anexar action=anexar_arquivo2.php enctype="multipart/form-data" method=post onSubmit=return(validar(this));>
<input type=hidden name='MAX_FILE_SIZE' value='30000'>
<input type=file name=arquivo class=text>
<input type=submit value='Ok' class=text>Code: Select all
echo($arquivo);Code: Select all
echo($_FILESї'userfile']ї'name']);Code: Select all
echo($HTTP_POST_FILESї'userfile']ї'name']);Please, this is driving me nuts... any help is much appreciated.
Thanks,
Victor.