Ver Mensaje Individual
  #20 (permalink)  
Antiguo 15/12/2012, 23:12
johnse0828
 
Fecha de Ingreso: diciembre-2012
Mensajes: 24
Antigüedad: 11 años, 4 meses
Puntos: 2
Respuesta: llenar arreglo con checkbox y caja de texto

Hola, mira, hice esto para probar si funciona enviar arreglos y manipularlos con indices y ps si es posible, te envio el ejemplo para que intentes solucionar tu problema:
Código HTML:
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
	</head>
	<body>
		<form action="recibe.php" method="post">
			<input type="text" name="texto[0]">
			<input type="text" name="texto[1]">
			<input type="text" name="texto[2]">
			<input type="text" name="texto[3]">
			<input type="submit">
		</form>
	</body>
</html> 
Código PHP:
<?php
    
if(isset($_POST['texto']))
    {
        
$textos $_POST['texto'];
        for(
$i 0$i sizeOf($textos); $i++)
        {
            echo 
"Valor de la caja de texto$i es:" $textos[$i] . '<br />';
        }
    }
    else
    {
        echo 
'No se puede obtener el valor';
    }
?>
Inténtalo de nuevo!
PD. (El tipo de datos TINYINT si no me equivoco solo recibe valores de 0 y 1).