This is how I handle my form:
# Create the message
# ----------------------------------------------------------------
$name = $_POST[\'na
Your form needs to have the appropriate enctype
attribute set, ie
A couple of suggestions...
$_POST['file']
value. Use the $_FILES
array for all uploaded file data.