Código PHP:
<?php
include("seguridad.php");
include ("conexion.php");
$rst_ordenes=mysql_query("SELECT * FROM costos ORDER BY id_costos", $conexion);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>listado</title>
<style type="text/css">
</style></head>
<BODY>
<label><h3>LISTADO:</h3></label>
<table cellpadding="0" cellspacing="0" border="4" style="text-align: center; border-color: #009c3c; ">
<tr>
<td><input type="submit" id="btnfecha" name="fechae" value="ID"/>
</td>
<td><input type="submit" id="btning" name="id_denuncia" value="NOMBRE"/>
</td>
<td><input type="submit" id="btnden" name="denuncia" value="APELLIDO"/>
</td>
<td><input type="submit" id="btnprop" name="propietario" value="DESTINO"/>
</td>
<td><input type="submit" id="btnexp" name="valor" value="VALOR"/>
</form></td>
</tr>
<?php
while ($fila= mysql_fetch_array($rst_ordenes))
{
?>
<form name="form1" method="post" action="" >
<tr>
<td><?php echo$fila["id_costos"];?></td>
<td><?php echo$fila["nombre"];?></td>
<td><?php echo$fila["apellido"];?></td>
<td><?php echo$fila["destino"];?></td>
<td><?php echo$fila["valor"];?></td>
<td><input name="check" type="checkbox" id="checkbox[]" value="<?php echo$fila["valor"];?>"></td>
<?php
}
?>
</tr>
</table>
<table><input type="submit" id="boton_enviar" name="enviar" value="calcular" /></table>
</form>
</body>
</html>