![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/08/2008, 19:50
|
![Avatar de hgp147](http://static.forosdelweb.com/customavatars/avatar163020_2.gif) | | | Fecha de Ingreso: diciembre-2006 Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 18 años, 1 mes Puntos: 36 | |
Respuesta: Si el campo viene vacio, me inserta otro dato Hola Capimaster. Proba si te srive esto:
$ruta = empty($_FILES['fichero']['name']) ? "spacer.gif" : $_FILES['fichero']['name'];
Reemplazo en donde dice: $ruta = $_FILES['fichero']['name']; |