Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/10/2008, 09:09
Avatar de juankysmith
juankysmith
 
Fecha de Ingreso: marzo-2008
Mensajes: 30
Antigüedad: 16 años, 10 meses
Puntos: 1
Respuesta: Pasar array en un link

Cita:
Iniciado por Ronruby Ver Mensaje
¿Y al recibirla?

Tendria que mostrar el Array si todo esta funcionando bien. Hazle un var_dump a el array cuando lo recibes.

Cuando entro por primera vez (sin errores) se muestra como NULL (lógico) después muestra ésto:

string(67) "a:1:{s:11:\"vacioNombre\";s:30:\" El nombre no puede ser vacio \";}"

y trás deserializarla:

array(1) { ["vacioNombre"]=> string(30) " El nombre no puede ser vacio " }

lo cual parece correcto!!!!

éste es el HTML que lo recibe:

function editCuadroMandos( $row, $lists, $option )
{
?>
<form action="index.php" method="post"
name="adminForm" id="adminForm">
<fieldset class="adminform">
<legend>Detalles del Indicador</legend>
<?php
// Recibe Array de Errores
$errores = $_GET['errores'];
// Deserializa Array
$errores = array_recibe($errores);
?>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
Nombre:
</td>
<td>
<input class="text_area" type="text" name="nombre"
id="nombre" size="50" maxlength="128"
value="<?php echo $row->nombre;?>" />
</td>
<td><font color="red"><small><?php echo $errores['vacioNombre']; ?></small></font></td>