Skip to content

Instantly share code, notes, and snippets.

@Barneybook
Created May 25, 2012 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Barneybook/2786615 to your computer and use it in GitHub Desktop.
Save Barneybook/2786615 to your computer and use it in GitHub Desktop.
fileupload
<form action="receive.php" form enctype="multipart/form-data" method=POST>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
照片上傳:<input name="userfile" type="file">
<hr />
<input type="submit" value="送出" name="B1">
<input type="reset" value="清空" name="B2"><br/>
</form>
<?php
$_FILES['userfile']['name'];
$_FILES['userfile']['type'];
$_FILES['userfile']['size'];
$_FILES['userfile']['tmp_name'];
$_FILES['userfile']['error'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment