Paper submission
" enctype="multipart/form-data" method="post"> '; echo "\n\n"; echo '
'; echo "\n"; echo '
Author:
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
E-mail address:
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
Co-authors:
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
Paper title:
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
Paper:
'; echo "\n"; echo "
'; echo "\n\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n\n"; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; if (isset($Submit)) { $numsendfiles = count($HTTP_POST_FILES); foreach($HTTP_POST_FILES as $strFieldName => $arrPostFiles) { if ($arrPostFiles['size'] > 0) { $handle = fopen("paper/counter.txt","r"); $n = fgets($handle,1000); fclose($handle); $strFileName = $arrPostFiles['name']; $strFileIDName = $n . "_" . $strFileName; $intFileSize = $arrPostFiles['size']; $strFileMIME = $arrPostFiles['type']; $strFileTemp = $arrPostFiles['tmp_name']; move_uploaded_file ($strFileTemp, "paper/$strFileIDName"); echo "
Thank you for submitting your paper!"; echo "
Paper Number: $n
"; $n = $n + 1; $handle = fopen("paper/counter.txt","w"); fputs($handle,$n); fclose($handle); } } } if (isset($Preview)) { $numsendfiles = count($HTTP_POST_FILES); foreach($HTTP_POST_FILES as $strFieldName => $arrPostFiles) { if ($arrPostFiles['size'] > 0) { $strFileName = $arrPostFiles['name']; $strFileIDName = $n . "_" . $strFileName; $intFileSize = $arrPostFiles['size']; $strFileMIME = $arrPostFiles['type']; $strFileTemp = $arrPostFiles['tmp_name']; $filename = $strFileTemp; echo " Check your data:
"; echo "
"; $intFileSizeKB = round($intFileSize / 1000, 0); echo "
Author: $author
"; echo "
E-mail address: $email
"; echo "
Co-Authors: $coauthors
"; echo "
Paper Title: $papertitle
"; echo "
File Name: $strFileName
"; echo "
File Size: $intFileSizeKB KB
"; echo "
File MIME type: $strFileMIME
"; echo "
"; } } } ?>