Anda kehilangan action="current file name" di baris pertama tag formulir...
<form id="form1" method="POST" action="current file name/example.php" enctype="multipart/form-data">
ATAU gunakan ini.
<form id="form1" method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>" enctype="multipart/form-data">