Hola!
Este codigo puedes usar actuament uso este
solo tienes que crear el formulario html incluyendo en campo de archivo.
y vincularlo al codigo php que es el que realiza el envio de los datos del formulario.
Este codigo php no requiere variables envia todos los datos de un formurio.
Aqui el codigo html de la imagen
Código: Seleccionar todo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>formulario</title>
<link href="http://www.zonadd.net/portada/contacto/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Estilo1 {font-size: small}
-->
</style>
</head>
<body>
<form action="envio.php" method="post" enctype="multipart/form-data" name="formulario1" id="formulario1">
<table width="413" border="0">
<tr>
<td width="106">Nombre</td>
<td width="291"><label>
<input name="textfield" type="text" class="text" />
</label></td>
</tr>
<tr>
<td>E-mail</td>
<td><label>
<input name="textfield2" type="text" class="text" />
</label></td>
</tr>
<tr>
<td>Mensaje</td>
<td><label>
<textarea name="textfield3"></textarea>
</label></td>
</tr>
<tr>
<td>Adjuntar archivo </td>
<td><label>
<input name="file" type="file" class="text" />
</label></td>
</tr>
<tr>
<td height="50"><a href="#"></a></td>
<td><label>
<input name="Submit" type="submit" class="button" value="Enviar" />
<br />
<br />
<a href="http://www.zonadd.net" class="Estilo1">by zonadd.net </a></label></td>
</tr>
</table>
<label></label>
<p> </p>
</form>
<p> </p>
</body>
</html>
Aqui el tutorial y el codigo php envio.php es super facil.
http://www.zonadd.net/viewtopic.php?t=791

Cualquier duda comentarlo