Ver Mensaje Individual
  #17 (permalink)  
Antiguo 23/04/2009, 08:13
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: if ($_POST["COMO PONGO VARIOS CAMPOS AQUI"]=="")

Con el foreach() también puedes saber cuál es el campo vacío:
Código php:
Ver original
  1. foreach($_POST as $key => $campos){
  2.     if(empty($campos)){
  3.         echo "El campo $key está vacío";
  4.         exit();
  5.     }
  6. }
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.