Tema: Suma Ayuda
Ver Mensaje Individual
  #18 (permalink)  
Antiguo 31/07/2007, 10:14
huascar
 
Fecha de Ingreso: julio-2007
Mensajes: 114
Antigüedad: 16 años, 9 meses
Puntos: 0
De acuerdo Ayuda Muchachos

COMO HAGO YO PARA SUMAR NUMEROS Y QUE LOS CAMPOS NO ME QUEDEN EN BLANCO CUANDO SE HAGA LA SUMA QUE SE SUME Y DE EL RESULTADO PERO LOS NUMEROS INTRODUCIDOS PARA REALIZAR LA SUMA SIGAN VISIBLES PORQ DESPUES LOS NECESITOS PARA GUARDARLOS Y SI LOS CAMPOS ESTAN VACIOS NO ME VA A GUARDAR SI NO EN DONDE DIO EL TOTAL ESTE ES EL CODIGO


<html>
<head>
<title>Web Modular</title>

</head>

<body>
<?
$d=$_POST;
$suma=$d['1']+$d['2'];
?>
<form action="h.php"b method="POST">
<table> <TR><TD>
<INPUT type="text" name="1">
<INPUT type="text" name="2">
<INPUT type="text" name="suma" value="<? echo $suma ?>">
<INPUT type="submit" name="suma" value="suma">
</TD></form>
</TR></table>
</body>
</html>