Ver Mensaje Individual
  #15 (permalink)  
Antiguo 19/08/2012, 15:26
Avatar de Nemutagk
Nemutagk
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 1 mes
Puntos: 406
Respuesta: Mostrar variable de sesion que es un array

a ver, como ya lo habia dicho, tu problema es COMO ESTAS IMPRIMIENDO EL VALOR DE tipo_habitacion_c, el error no esta después, esta en el formulario....

Código PHP:
Ver original
  1. //MAL
  2.       $numHab = count($tipo_habitacion_c);
  3.       for($i=0; $i<=$numHab; $i++){
  4.                 $tipo_habitacion_c[$i];
  5.            
  6.             echo '<td>'.$tipo_habitacion_c[$i];'</td>';
  7.             echo '<input type="hidden" name="tipo_habitacion_c[]" value="'.$tipo_habitacion_c.'">';
  8.       }
  9.  
  10. //BIEN
  11.       $numHab = count($tipo_habitacion_c);
  12.       for($i=0; $i<=$numHab; $i++){
  13.                 $tipo_habitacion_c[$i];
  14.            
  15.             echo '<td>'.$tipo_habitacion_c[$i];'</td>';
  16.             echo '<input type="hidden" name="tipo_habitacion_c[]" value="'.$tipo_habitacion_c[$i].'">';
  17.       }
__________________
Listo?, tendría que tener 60 puntos menos de IQ para considerarme listo!!!
-- Sheldon Cooper
http://twitter.com/nemutagk
PD: No contestaré temas vía mensaje personal =)