i have a form, let say form1.
it has fields like name, address, file field(for upload),
a multiple list box, user can upload zero or more files, so once they hit upload button, the file will upload to server and the filename will pass to the list pass for update DB.
the upload button will submit to upload.php and target to a new window
but i found that when i upload more files and then hit submit button which submit all name, address and the list box. it runs slower than without upload any file previously.
does anyone know any problem?
upload.php
<?PHP
$userfile_name = strtolower($_FILES['userfile']['name']);
if (is_uploaded_file($_FILES['userfile']['tmp_name']))
copy($_FILES['userfile']['tmp_name'], "upload/$userfile_name");
?>
<script language="JavaScript">
self.close();
</script>