Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/12/2009, 22:46
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Asignar valores a variable SESSION bidimensional

Actualmente lo tengo asi:

Código HTML:
<form action="ses.php" method="post">
<input type="text" name="a" />
<input type="text" name="b" />
<input type="text" name="c" />
<input type="text" name="d" />
<input type="text" name="e" />
<input type="submit" value="Enviar" />
</form> 
Código PHP:
<?php
$pos 
1;

$_SESSION[$pos][1] = $_POST['a'];
$_SESSION[$pos][2] = $_POST['b'];
$_SESSION[$pos][3] = $_POST['c'];
$_SESSION[$pos][4] = $_POST['d'];
$_SESSION[$pos][5] = $_POST['e'];

foreach(
$_SESSION as $key){
    foreach(
$key as $value){
        echo 
$value."<br />";
    }
}
?>
y funciona sin problemas