Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/12/2007, 03:35
sk1one
 
Fecha de Ingreso: diciembre-2007
Mensajes: 149
Antigüedad: 16 años, 4 meses
Puntos: 1
De acuerdo Re: A ver si lo veis en que falla :( curiosa cosa :O

Cita:
Iniciado por DarkJ Ver Mensaje
Creas el array con la funcion
Código PHP:
$Array=$a->valoreshiddenqs('27','hiddenField','GET'); 
Haz un var_dump($Array) o un print_r($array) para ver realmente el array y su estructura (indices sobre todo).

La razon por la que no te funciona con el for es porque estoy casi seguro que no te genera un array de indices numericos.
Increible no sabia que con var_dumb se podia hacer eso :O y me imprime lo siguiente:

array(27) { ["hiddenField1"]=> string(7) "Usuario" ["hiddenField2"]=> string(7) "E-mail:" ["hiddenField3"]=> string(10) "Contraseñi" ["hiddenField4"]=> string(7) "Nombre:" ["hiddenField5"]=> string(12) "Apellidos: 1" ["hiddenField6"]=> string(12) "Apellidos: 2" ["hiddenField7"]=> string(4) "DNI:" ["hiddenField8"]=> string(1) "L" ["hiddenField9"]=> string(8) "Empresa:" ["hiddenField10"]=> string(10) "Direccion:" ["hiddenField11"]=> string(5) "C.P.:" ["hiddenField12"]=> string(9) "Población" ["hiddenField13"]=> string(9) "Provincia" ["hiddenField14"]=> string(4) "Pais" ["hiddenField15"]=> string(5) "(+34)" ["hiddenField16"]=> string(14) "Teléfono fijo:" ["hiddenField17"]=> string(5) "(+34)" ["hiddenField18"]=> string(15) "Teléfono movil:" ["hiddenField19"]=> string(9) "Nombre_CC" ["hiddenField20"]=> string(14) "Apellidos_1_CC" ["hiddenField21"]=> string(14) "Apellidos_2_CC" ["hiddenField22"]=> string(4) "DNI:" ["hiddenField23"]=> string(1) "E" ["hiddenField24"]=> string(7) "Entidad" ["hiddenField25"]=> string(7) "Oficina" ["hiddenField26"]=> string(2) "DC" ["hiddenField27"]=> string(6) "Cuenta" }

Cierto es como tu decias que no son indices, tonces dentro del for s tendria que ir imprimiendo asi
Código PHP:
echo $Array[hiddenField.$datosP]; 
¿Hay alguna manera de convertir esos índices?. Digo manera a alguna función, por no ponerme a crear un nuevo array con índices.