"; if ( is_uploaded_file ($_FILES['filename']['tmp_name']) ) { echo "UPLOAD OK KANKA
"; } else { echo "AMK AMK AMK "; } if ($_POST['submit']=='Upload') { if ( move_uploaded_file( $_FILES['filename']['tmp_name'], "{$_FILES['filename']['name']}" ) ) { print '

The file has been successfully uploaded

'; } else { echo "
a". $_FILES['filename']['error']; switch ($_FILES['filename']['error']) { case 1: print '

The file is bigger than this PHP installation allows

'; break; case 2: print '

The file is bigger than this form allows

'; break; case 3: print '

Only part of the file was uploaded

'; break; case 4: print '

No file was uploaded

'; break; } } echo "UPLOADED ANAM"; // header("location:http://localhost/login.php"); exit; } ?>
Your file: