This is how I handle my form:
# Create the message
# ----------------------------------------------------------------
$name = $_POST[\'na
Two things:
1. Is the form set to:
<form method="POST" enctype="multipart/form-data" action="INSERT ACTION">
2. Is the folder your posting the file to, is it set to 777?
Your form needs to have the appropriate enctype
attribute set, ie
<form enctype="multipart/form-data" method="post" action=... >
A couple of suggestions...
$_POST['file']
value. Use the $_FILES
array for all uploaded file data.