Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2014, 17:47
Avatar de asus090102
asus090102
 
Fecha de Ingreso: mayo-2012
Ubicación: Ensenada- Buenos Aires
Mensajes: 67
Antigüedad: 12 años
Puntos: 1
suma por verificacion

Hola amigos, quisiera saber si me pueden dar una mano con este tema. Luego de verificar algunos registros, quisiera que estos se sumen. Les muestro como voy hasta ahora:
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>
Espero no haberme equivocado en como guardo los valores de los campos validados por los checkbox. Y pequeño detalle.... me faltaría saber como es que puedo ver la suma de todos los verificados. Alguna idea salvadora? Muchísimas gracias de antemano.