Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/12/2005, 11:57
daenor
 
Fecha de Ingreso: diciembre-2004
Mensajes: 197
Antigüedad: 19 años, 4 meses
Puntos: 1
muchisimas gracias!!!!
asi lo resolvi:

1ro declare y tome de la sesion las siguientes variables:
Código PHP:
$IA $_SESSION['a'];
$IM $_SESSION['b'];
$IT $_SESSION['c'];
$EA $_SESSION['d'];
$EM $_SESSION['e'];
$ET $_SESSION['f']; 
y luego arme otra paginapara que busque las variables asi:

Código PHP:
<?PHP
echo <<< HTML
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
HTML;
//cambio de html a php para declarar las variables y armar la tabla
    
if ($IA == or $IM == or $IT == or $EA == or    $EM == or $ET == 0){
    echo 
"<td>";
    print 
"";
    echo 
"</td>";
    }
    
//VARIABLES PARA COMERCIO AEREO
    
if ($IA==1){
    echo 
"<td width='10%'>";
    print 
"IA";
    echo 
"</td>";
    }
    if (
$EA==1){
    echo 
"<td width='10%'>";
    print 
"EA";
    echo 
"</td>";
    }
    
//VARIABLES PARA COMERCIO MARITIMO
    
if ($IM==1){
    echo 
"<td width='10%'>";
    print 
"IM";
    echo 
"</td>";
    }
    if (
$EM==1){
    echo 
"<td width='10%'>";
    print 
"EM";
    echo 
"</td>";
    }
    
//VARIABLES PARA COMERCIO TERRESTRE
    
if ($IT==1){
    echo 
"<td width='10%'>";
    print 
"IT";
    echo 
"</td>";
    }
    if (
$ET==1){
    echo 
"<td width='10%'>";
    print 
"ET";
    echo 
"</td>";
    }
//continua el html
echo <<< HTML
  </tr>
  <tr>
<table width="50%" border="2" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
  </tr>
</table>
HTML;
?>
siendo que las variables solo pueden tomar 0 o 1

Gracias!!!

Bye!
__________________
Diseñador y Desarrolador en Proyecto81 WebStudio