daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Nov 17th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if (is_uploaded_file($_FILES["upfile"]["tmp_name"])) {
  3.     // echo $_FILES["upfile"]["name"] . "をアップロードしました。";
  4.     // print('<img src="' . $_FILES["upfile"]["tmp_name"] . '">');
  5.     echo $_FILES["upfile"]["tmp_name"];
  6. } else {
  7.     // echo "ファイルが選択されていません。";
  8. }
  9. ?>
  10. <form action="index.php" method="post" enctype="multipart/form-data">
  11.   File<br />
  12.   <input type="file" name="upfile" size="30" /><br />
  13.   <br />
  14.   <input type="submit" value="Image upload" />
  15. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top