Location: PHPKode > scripts > PHP - File Upload > php-file-upload/upload.php
<HTML>
<HEAD>
<TITLE>PHP - file upload</TITLE>
<style type="text/css">
<!--
body   {  font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
-->
</style>
</HEAD>

<BODY>
<center>
<table>
<FORM ENCTYPE="multipart/form-data" ACTION="upload_go.php" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">

<tr>
  <td><b>file upload</b></td>
  <td></td>
</tr>
<tr>
  <td>file: </td>
  <td><input type="File" name="userfile" size="30" maxlength="255">
  </td>
</tr>
<tr>
  <td>target filename: </td>
  <td><input type="Text" name="newname" size="30" maxlength="^255">
  </td>
  </tr>
<tr>
<tr>
  <td>upload diretory: </td>
  <td>c:\apache\upload\</td>
</tr>
  <td colspan="2" align="CENTER">
    <INPUT TYPE="submit" VALUE="upload">
  </td>
</tr>
</FORM>
</table>
</center>
</BODY>
</HTML>
Return current item: PHP - File Upload