Foros del Web » Programando para Internet » PHP »

Como llemarme datos de un bucle

Estas en el tema de Como llemarme datos de un bucle en el foro de PHP en Foros del Web. hola a todos disculpen mi insitencia pero necesito resolver esto no soy experto en php por eso recurro a ustedes. Miren lo que necesito es ...
  #1 (permalink)  
Antiguo 03/03/2005, 12:17
Avatar de christopher1979  
Fecha de Ingreso: octubre-2004
Mensajes: 203
Antigüedad: 19 años, 5 meses
Puntos: 0
Exclamación Como llemarme datos de un bucle

hola a todos disculpen mi insitencia pero necesito resolver esto no soy experto en php por eso recurro a ustedes.

Miren lo que necesito es llevarme unos datos de un bucle de una consulta pero dentro de ese bucle ay input text esto que quiere decir que los datos que llame necesitan agregarle mas datos pero como son varios necesito llevarme todos los datos que coloque yo en los inputs a otra pagina para que yo pueda adaptarlo a otra consulta como me puedo llevar los datos de todos mis inputs y mi bucle y que considan los datos de mis inputs text en mi siguiente pagina.


la soloucion que me dieron era hacer una variable con todo el bucle pero no se como hacerlo de todas maneras les pongo el codigo de lo que llevo gracias de antemano

Código PHP:

<?php

$obraclavefrente 
$_POST['obraclavefrente'];

$obranombrefrente $_POST['obranombrefrente'];

$ubicacionfrente $_POST['ubicacionfrente'];

$clavepartida $_POST['clavepartida'];

$frentecalle $_POST['frentecalle'];

$frentenumero $_POST['frentenumero'];

$frentecolonia $_POST['frentecolonia'];

$clavedestajista $_POST['clavedestajista'];

$nombredestajista $_POST['nombredestajista'];

$etapa $_POST['etapa'];

$partidafecha $_POST['partidafecha'];

$finalfecha $_POST['finalfecha'];

$ano $_POST['ano'];

$fecha $_POST['fecha'];

$clavepaquete $_POST['clavepaquete'];

$numeroestimacionletra $_POST['numeroestimacionletra'];

$numeroestimacion $_POST['numeroestimacion'];

$descpaquete $_POST['descpaquete'];

$connection mysql_connect("localhost","administrador","administrador");

    
mysql_select_db("destajos",$connection);

$datospaquete mysql_query("SELECT * FROM paquetel where clavefrente = '$obraclavefrente' and clavepaquete = '$clavepaquete' and clavepartida = '$clavepartida'",$connection);

    echo 
"<table>";

    echo 
"<tr><td><font color = \"blue\" size = \"3\" face = \"arial\"><b>ESTIMACIONES (PASO3)<b></font></td></tr>";

    echo 
"</table><br><br>";

    echo 
"<table  width = \"900px\">";

    echo 
"<tr><td><font color = \"blue\" size = \"2\" face = \"arial\"><b>OBRA:</b></font><font color = \"green\" size = \"2\"><b>$obraclavefrente-$obranombrefrente</b></font></td>";

    echo 
"<td><font color = \"blue\" size = \"2\" face = \"arial\"><b>FECHA:</b></font><font color =\"green\" size =\"2\"><b>$fecha</b></font></td>";

    echo 
"<td><font color =\"blue\" size = \"2\" face = \"arial\"><b>LOCALIDAD:</b></font><font color = \"green\" size = \"2\"><b>$frentecalle $frentenumero Col. $frentecolonia</b></font></td></tr>";

    echo 
"<tr><td><font color = \"blue\" size = \"2\" face = \"arial\"><b>FRENTE:</b></font<td><font color = \"green\" size = \"2\"><b>$ubicacionfrente</b></font></td>";

    echo 
"<td><font color = \"blue\" size = \"2\" face = \"arial\"><b>ETAPA:</b></font><font color = \"green\" size = \"2\"><b>$etapa</b></font></td>";

    echo 
"<td><font color = \"blue\" size = \"2\" face = \"arial\"><b>DESTAJISTA:</b></font><font color = \"green\" size = \"2\"><b>$clavedestajista-$nombredestajista</b></font></td></tr>";

    echo 
"<tr><td><font color = \"blue\" size = \"2\" face = \"arial\"><b>PERIODO DE:</b></font><font color = \"green\" size = \"2\"><b>$partidafecha</b></font>*<font color = \"blue\" size = \"2\" face = \"arial\"><b>AL:</b></font><font color = \"green\" size = \"2\"><b>$finalfecha $ano</b></font></td>";

    echo 
"<td><font color = \"blue\" size = \"2\" face = \"arial\"><b>ESTIMANCION NUMERO:</b></font><font color = \"green\" size = \"2\"><b>**$numeroestimacion</b></font></Td></tr>";    

    echo 
"<tr><td><font color =\"blue\" size = \"2\" face = \"arial\"><b>TRABAJOS DE:</b></font><font color = \"green\" size = \"2\"><b>$clavepartida</b></font></td>";

    echo 
"<td><font color = \"blue\" size = \"2\" face = \"arial\"><b>ESTIMACION NUMERO(con letra):</b></font><td><font color = \"green\" size = \"2\"><b>$numeroestimacionletra</b></font></td></tr>";

    echo 
"</table><br><br>";

    echo 
"<table border = \"1\">";

    echo 
"<th><font size = \"2\"><b>Clave Concepto</b></font></th>";

    echo 
"<th><font size = \"2\"><b>Concepto</b></font></th>";
    
    echo 
"<th><font size = \"2\"><b>Unidad</b></font></th>";

    echo 
"<th><font size = \"2\"><b>Precio Unitario</b></th>";

    echo 
"<th><font size = \"2\"><b>Cantidad</b></th>";

    echo 
"<th><font size = \"2\"><b>Nuevo Volumen</b></th>";

    echo 
"<th><font size = \"2\"><b>Nuevo Importe</b></th>";

$datospaquete mysql_query("SELECT * FROM paquetel where clavefrente = '$obraclavefrente' and clavepaquete = '$clavepaquete' and clavepartida = '$clavepartida' and descpaquete = '$descpaquete'",$connection);

        while (
$rows mysql_fetch_assoc($datospaquete)){

        echo 
"<tr><td><font size = \"1\">$rows[claveconcepto]</td>";

        echo 
"<td><font size = \"1\">$rows[descconcepto]</font></td>";

        echo 
"<td><font size = \"1\">$rows[unidad]</font></td>";
        
        echo 
"<td><font size = \"1\">$rows[pu]</font></td>";
        
        echo 
"<td><font size = \"1\">$rows[cantidad]</font></td>";

        

        echo 
"<td><input type = \"text\" name = \"volumennuevo[0][]\" maxlenght = \"25\" size = \"10\"></td>";

        echo 
"<td><input type = \"text\" name = \"importenuevo[1][]\" maxlenght = \"25\" size = \"10\"></td></tr></table>";
}


        echo 
"<form name = \"envio\" method = \"POST\" action = \"menu.php\">";

        echo 
"<input type = \"hidden\" name = \"bucle\" value = \"$bucle\">";

        echo 
"<input type = \"hidden\" name = \"clavefrente\" value = \"$obraclavefrente\">";

        echo 
"<input type = \"hidden\" name = \"nombrefrente\" value = \"$obranombrefrente\">";

        echo 
"<input type = \"hidden\" name = \"ubicacionfrente\" value = \"$ubicacionfrente\">";

        echo 
"<input type = \"hidden\" name = \"clavepartida\" value = \"$clavepartida\">";

        echo 
"<input type = \"hidden\" name = \"frentecalle\" value = \"$frentecalle\">";

        echo 
"<input type = \"hidden\" name = \"frentenumero\" value = \"$frentenumero\">";

        echo 
"<input type = \"hidden\" name = \"frentecolonia\" value = \"$frentecolonia\">";

        echo 
"<input type = \"hidden\" name = \"clavedestajista\" value = \"$clavedestajista\">";

        echo 
"<input type = \"hidden\" name = \"nombredestajista\" value = \"$nombredestajista\">";

        echo 
"<input type = \"hidden\" name = \"etapa\" value = \"$etapa\">";

        echo 
"<input type = \"hidden\" name = \"partidafecha\" value = \"$partidafecha\">";

        echo 
"<input type = \"hidden\" name = \"finalfecha\" value = \"$finalfecha\">";

        echo 
"<input type = \"hidden\" name = \"ano\" value = \"$ano\">";

        echo 
"<input type = \"hidden\" name = \"fecha\" value = \"$fecha\">";

        echo 
"<input type = \"hidden\" name = \"clavepaquete\" value = \"$clavepaquete\">";

        echo 
"<input type = \"hidden\" name = \"numeroestimacionletra\" value = \"$numeroestimacionletra\">";

        echo 
"<input type = \"hidden\" name = \"numeroestimacion\" value = \"$numeroestimacion\">";

        echo 
"<input type = \"hidden\" name = \"descpaquete\" value = \"$descpaquete\">";

        echo 
"<table><tr><td><input type = \"submit\" value = \"PASO (4)\"></td></tr></table>"

        echo 
"</form>";

        

?>
gracias de antemano y disculpen las molestias tiene relacion tambien con este tema por favor ayudarme http://www.forosdelweb.com/f18/como-llevarme-post-275861/

Última edición por christopher1979; 03/03/2005 a las 12:19
  #2 (permalink)  
Antiguo 03/03/2005, 12:40
O_O
 
Fecha de Ingreso: enero-2002
Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 22 años, 2 meses
Puntos: 129
Mensaje cerrado por repetido:
http://www.forosdelweb.com/showthread.php?t=275861

Si tienes algo que agregar o aclarar .. por favor usa tu mensaje inicial.

Un saludo,
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Tema Cerrado




La zona horaria es GMT -6. Ahora son las 19:35.