<form name="form1" method="post" action="index.php">
修改为如下所示:
<form name="form1" method="post" action="index.php" enctype="multipart/form-data">