' if(!empty($_POST)) { if(isset($_POST['title'])) { //you can check as many vars as you want here // Where the file is going to be placed $target_path = "uploads/"; /* Add the original filename to our target path. Result is "uploads/filename.extension" */ $target_path = $target_path.basename($_FILES['uploadedfile']['name']); //$_FILES['uploadedfile']['tmp_name']; ?? whats this doing print_r($_POST); print_r($_FILES); } else { die('uhoh hot dog'); } } else { //print form echo '



br />


'; } echo ' ';