Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/03/2015, 06:32
cimorra140
 
Fecha de Ingreso: febrero-2014
Mensajes: 3
Antigüedad: 10 años, 2 meses
Puntos: 0
Respuesta: If y else en php en un email

Prueba así a ver que tal

if($Categoria=='Alevin' || $Categoria== 'Cadete'){
$Chasis=$_POST['Chasis'];
$Motor1=$_POST['Motor1'];
$Motor2=$_POST['Motor2'];
}
if($Categoria=='Senior-KZ2'){
$Chasis=$_POST['Chasiss'];
$Motor1=$_POST['Motorr1'];
$Motor2=$_POST['Motorr2'];
}if($Categoria=='Junior' || $Categoria=='Senior'){
$Motor1=$_POST['Motor1'];
$Motor2=$_POST['Motor2'];
$Chasis=$_POST['Chasiss'];
}