Guest User

Untitled

a guest
Dec 5th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2.  
  3. if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  4.     $user=$_POST["user"];
  5.     $pass=$_POST["pass"];
  6.  
  7.     $file="fileone.txt";
  8.     $content=$_POST["authoroffile", "titleoffile", "nameoffile"];
  9.     file_put_contents($file,$content,FILE_APPEND);
  10. }
  11. ?>
  12. <html>
  13. <body>
  14.  
  15. <form enctype="multipart/form-data" action="text_upload.html" method="POST">
  16. <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
  17. Author: <input name="authoroffile" type="text" /><br />
  18. Title: <input name="titleoffile" type="text" />
  19. File Name: <input name="nameoffile" type="text" />
  20. <input type="submit" value="Upload File" />
  21. </form>
  22. </body>
  23. </html>
Add Comment
Please, Sign In to add comment