Ver Mensaje Individual
  #14 (permalink)  
Antiguo 15/06/2011, 15:11
rolygc
 
Fecha de Ingreso: abril-2009
Ubicación: en un lugar de la mancha
Mensajes: 236
Antigüedad: 15 años
Puntos: 38
Respuesta: Problema de lógica de condicionales

Tambien puedes chequear si el fichero ha sido subido.

Cuando el usuario sube el file si genera algun error.

Código HTML:
<input name="Img_1" type="file">
<input name="Img_2" type="file">
<input name="Img_3" type="file"> 
Código PHP:
// Chequear algun error.
if ($_FILES['Img_1']['error'] == 4)
   echo 
"No se subio la 1ra imagen.";
if (
$_FILES['Img_2']['error'] == 4)
   echo 
"No se subio la 2da imagen.";
if (
$_FILES['Img_3']['error'] == 4)
   echo 
"No se subio la 3ra imagen."