Hi
I downloaded this file :
http://www.phpsimplicity.com/scripts.php?id=3
its a upload script, what it does is simply upload, but i wanted to add a field to RENAME the file before fulle uploaded and make the field COMPULSARY!
i just asked the maker of the script, he was in a hurry to leave city because he was going on holiday, so he told me i need to edit
Quote:
|
if(@move_uploaded_file($_FILES['SFUfile']['tmp_name'][$i], $fullname)) {
|
(FROM upload.php)
but i still dont get how do i add the field in the first place to allow me to edit it! i checked, the veriable $fullname is the varibale which i need to make the form change the name to, but i dont know where to edit, the script is abit wierd to edit!
it would be just amazing if someone was to tell me how to add another field under or beside the upload field to rename a file and make it compulsary.
Thank you very much
