Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- $user=$_POST["user"];
- $pass=$_POST["pass"];
- $file="fileone.txt";
- $content=$_POST["authoroffile", "titleoffile", "nameoffile"];
- file_put_contents($file,$content,FILE_APPEND);
- }
- ?>
- <html>
- <body>
- <form enctype="multipart/form-data" action="text_upload.html" method="POST">
- <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
- Author: <input name="authoroffile" type="text" /><br />
- Title: <input name="titleoffile" type="text" />
- File Name: <input name="nameoffile" type="text" />
- <input type="submit" value="Upload File" />
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment