![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/07/2007, 06:49
|
| | Fecha de Ingreso: diciembre-2005 Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 19 años, 1 mes Puntos: 15 | |
Leer variables desde loop while Hola a todos
no puedo hacer funcionar este codigo para que un loop while imprima los valores de variables tipo GET.
este es el codigo
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if (isset($_POST['submitted']))
{
$i = 1;
$bb = 3 ;
while ($i == $bb){
if (!isset($_GET['i_deleted_$i'] )) {
echo "<br/>no set ::".$_GET['i_deleted_$i'];
}else{
echo "<br/>set ::".$_GET['i_deleted_$i'];
}
$i++;
}
}//end - if submited
?>
<form action="archivo.php?i_deleted_1=1&i_deleted_3=1" method="post" name="enviaForm" id="enviaForm">
<input type="hidden" name="submitted" value="TRUE" />
<input type="submit" name="envia" value="send" />
</form>
</body>
</html>
cambiar el method del formulario a GET no me ha funcionado tampoco...
Última edición por chefnelone; 09/07/2007 a las 07:02 |