$portada=$_FILES['portada'];
este código me genera un error....
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
creo que me falta algo pero no se que es ?
además que código o función necesitara para comprobar que el campo file tiene un archivo, así después de eso se ejecuta el código de INSERT para guardar la foto en la base de datos.
,
Código:
<form action="alta_p.php" method=POST> <table width=180 border=1 align=center> <tr> <div align=center>Nueva pelicula</div> </tr> <tr> <td width=200><div align=right>Titulo</div></td> <td width=200><input name=titulo type=text size=25></td> </tr> <tr> <td width=200><div align=right>Genero</div></td> <td width=200><input name=genero type=text size=25></td> </tr> <tr> <td width=200><div align=right>Actores</div></td> <td width=200><input name=actores type=text size=25></td> </tr> <tr> <td width=200><div align=right>Duracion</div></td> <td width=200><input name=duracion type=text size=25></td> </tr> <tr> <td width=200><div align=right>Trailer</div></td> <td width=200><input name=trailer type=text size=25></td> </tr> <tr> <tr> <td width=200><div align=right>Portada</div></td> <td width=200><input name=portada type="file" size=25></td> </tr> <tr> <td colspan=2><div align=center><input type=submit value="ingresar"> <input type="reset" value="borrar"></td> </tr> </table> </form>