Ver Mensaje Individual
  #8 (permalink)  
Antiguo 24/03/2012, 08:04
rascabuchitos
 
Fecha de Ingreso: abril-2011
Ubicación: Peru
Mensajes: 486
Antigüedad: 13 años
Puntos: 9
Respuesta: visualizar llenado de campos

hice ambos intentos y no me funciono :(
la estructura logica para que funcione deberia ser asi

<form id="insertar" name="insertar" method="post" action="">
<p>N° de Comprobante:
<input name="comprobante" type="text" id="comprobante" size="50" />
</p>
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "Comprobante: ".$rowEmp['comprobante']."<br>";
}
}
?>
<p>RUC:
<input name="ruc" type="text" id="ruc" size="50" />
</p>
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "Ruc: ".$rowEmp['ruc']."<br>";
}
}
?>
<p>Razon social:
<input name="razon" type="text" id="razon" size="50" />
</p>
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "Razon: ".$rowEmp['razon']."<br>";
}
}
?>
<input type="submit" name="Submit" value="Insertar Registro" />
<input type="hidden" name="action" value="add" />
</form>

agradeceria mucho su ayuda