<!DOCTYPE html>
<html>
<title>UPLOAD</title>
<meta name="viewport" content="width=device-width, initial-scale=1">  
  <link href="favicon.png" rel="icon">
  <link href="favicon.png" rel="apple-touch-icon">
<style>
body{font-family:arial;}
a:visited, a:link, a:active{color:blue; text-decoration:none;}
a:hover{color:limegreen;}
.sd{background:red; color:white; }
.sd:hover{background:limegreen; color:yellow; }
</style>

<body style="background: linear-gradient(to bottom, #ffffff 0%, #ffff99 100%); 
background-repeat: no-repeat; background-attachment: fixed;">
    
    
<?php  
$target_dir = "images/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) 
{
echo "<center><h2 style='color:#00cc00; font-family:arial;'><b> $target_file </b> <span style='color:blue;'> The file has been successfully upload.</span> </h2></center>";
header('refresh:3; URL=uploadfile.php');
} 
else
{
echo "<center><h2 style='color:red; font-family:arial;'><b> Select File and Upload </b></h2></center>";
}
?>


<div style="background: linear-gradient(to top, #0066ff 0%, #ccffff 100%); 
padding:5px; max-width:355px; font-family:arial; margin:5px auto; border-radius:12px;">
<center>
<span style='color:#006600;'> You Have Upload Anytype file. </span>
<h2 style='margin:4px;'><b> Select File to Upload: </b></h2>
</center>

<form action="" method="post" enctype="multipart/form-data">
<center><input type="file" name="fileToUpload" id="fileToUpload" style="font-size:20px; 
font-family:arial; background:white; padding:2px; max-width:330px; cursor:pointer; color:#000;"></center>
<center><input type="submit" value="Upload File" name="submit" style="margin-top:5px; 
font-size:18px; font-family:arial; background:white; padding:5px; cursor:pointer; border-radius:5px;"></center>
</form>

</div>

<center>Your Files Uploaded in images Folder</center>

<center> <a href='index.php' class='sd'> <h2 class='sd' style='font-family:arial; 
width:150px; padding:5px; border-radius:7px;'>  View Files  </h2> </a> </center>


</body>
</html>