Paper submission



" enctype="multipart/form-data" method="post"> '; echo "\n\n"; echo '
'; echo "\n"; echo '
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
'; echo "\n"; echo "
"; echo "\n"; echo '
'; echo "\n\n"; echo '
'; echo "\n"; echo '
'; 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 ""; } } } ?>