"; // print_r($_post); // echo ""; if(($_FILES["file"]["size"] > 0)) { $fileName = $_FILES["file"]["name"];//the files name takes from the HTML form $fileTmpLoc = $_FILES["file"]["tmp_name"];//file in the PHP tmp folder $fileType = $_FILES["file"]["type"];//the type of file $fileSize = $_FILES["file"]["size"];//file size in bytes $fileErrorMsg = $_FILES["file"]["error"];//0 for false and 1 for true $target_path = "uploads/" . basename( $_FILES["file"]["name"]); $moveResult = move_uploaded_file($fileTmpLoc, $target_path); } $template->assign('content', 'tpl/i_info.tpl'); ?>