hola tengo el siguiente codigo el cual hago una tabla dinamica de ciertos datos y cada lista tiene un boton submit para crear un pdf, el cual me lo descarga al hacer clic. el problema que tengo es que cuando creo el pdf ciertos parametros del registro de la fila seleccionada cambian y por tal motivo deberia de recargar la pagina, pero no sabria como hacer despues de dar clic en el boton submit.
si alguien me pudiese ayudar se lo agradeceria.
<table>
<tr>
<td></td>
<td style="font-weight:bold">ID</td>
<td style="font-weight:bold">Cliente</td>
<td style="font-weight:bold">Fecha</td>
<td style="font-weight:bold">Horas</td>
<td style="font-weight:bold">Dirección</td>
<td style="font-weight:bold">Estado</td>
<td style="font-weight:bold">Persona Encargada</td>
<td style="font-weight:bold">Contrato</td>
<td style="font-weight:bold">Fecha Cierre</td>
<td></td>
</tr>
<?
$nit = $_POST['nit'];
$query = mysql_query("select * from servicios_facturacion WHERE estado = 'Cerrada' AND empresa = '$nit' ORDER BY id desc");
$i=0;
while($row = mysql_fetch_assoc($query)){
echo "<tr class='fila_".($i%2)."'>";
echo "<td><input type='checkbox' name='s".$i."' id='s".$i."' value='$row[id]'></td>";
echo "<td> $row[id] </td> ";
echo "<td>".$cliente."</td> ";
echo "<td> $row[fecha_entrada] </td> ";
echo "<td>".$horanueva." </td> ";
echo "<td>".$dir." </td> ";
echo "<td> $row[estado] </td> ";
echo "<td>".mysql_result($query_sql,0,"p_nombre")." ".mysql_result($query_sql,0,"s_nombre")." ".mysql_result($query_sql,0,"p_apellido")." ".mysql_result($query_sql,0,"s_apellido")." </td> ";
echo "<td> $row[contrato] </td> ";
echo "<td> $row[fecha_cierre] </td> ";
echo "<form name='formfactura' action='Facturar_pdf.php' method='post'>";
echo "<input type='hidden' name='id' value='$row[id]'>";
echo "<td><input type='submit' value='Facturar'></td>";
echo "</form>";
echo "</tr>";
$i++;
}
echo "</table>";
si necesitas recargar la pagina usa el submit con action=""
es que necesito hacer el submit para descargar el archivo y a la vez recargar la pagina que me lista los registros con sus respectivos submit
con <form action="file.html" method="post" target="_blank" onSubmit="refrescar()">el submit abriria en nueva ventana y creas una funcion refrescar que actualize
gracias me sirvio de mucho