Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <form action="welcome.php" method="post" enctype="multipart/form-data">
- <input id="foto1slct" name="foto1" size="45" type="file" value="Upload" accept="image/*">
- <input id="invia" type="submit" value="Invia">
- </input>
- </form>
- </body>
- </html>
- <html>
- <body>
- <?php $file = 'Italia/categoria.html'; ?>
- <?php $current = file_get_contents($file); ?>
- <?php $current .= $_POST["foto1"]; ?>
- <?php file_put_contents($file, $current); ?>
- </body>
- </html>
- <form enctype="multipart/form-data" method="post" action="welcome.php">
- Choose your file here:
- <input name="file1" type="file" /><br /><br />
- <input type="submit" value="Upload It" />
- </form>
- <?php
- $fileName = $_FILES["file1"]["name"];
- $fileTmpLoc = $_FILES["file1"]["tmp_name"];
- $newfile="tempareryloc/$fileName";
- move_uploaded_file($fileTmpLoc,$file);
- $file = 'Italia/categoria.html';
- $current = file_get_contents($file);
- $current. = file_get_contents($newfile);
- unlink($newfile);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement