File upload

<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="[COLOR="#FF0000"]uploadAction.php[/COLOR]" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />

I have the code above in upload.php.

Now what code should I put in uploadAction.php for the uploading file to be uploaded?

Someone posted this yesterday:

Does that help?