$tipo= "OTRO"; if ($hardware == 1 && $software == 1) $tipo = "ambos" else if( $hardware == 1 ) $tipo = "hardware"; else if( $software == 1 ) $tipo = "software";