Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/01/2013, 01:37
Avatar de zreep
zreep
 
Fecha de Ingreso: octubre-2009
Ubicación: Argentina
Mensajes: 534
Antigüedad: 14 años, 6 meses
Puntos: 12
Respuesta: Problema con if

Gracias Pateketrueke... lei el manual e hice esto;

Código PHP:
if(!in_array($_POST['login'],$usuario)){ 
y funciona bien... por ahora. Este es el script completo...

Código PHP:
$usuario = array(879456123,321654987,123789456,546879224);
    
    
//echo $usuario[3];  
    
if(!in_array($_POST['login'],$usuario)){
        
header("location:index.php?error=1");
    }
    else{
        
header("location:home.php");
    } 

Gracias...
__________________
Zreep