Tema: Suma Ayuda
Ver Mensaje Individual
  #15 (permalink)  
Antiguo 31/07/2007, 09:23
huascar
 
Fecha de Ingreso: julio-2007
Mensajes: 114
Antigüedad: 16 años, 9 meses
Puntos: 0
Re: Ayuda Con Codigo De Suma

COMO HAGO PARA Q ESTE CODIGO ME MUESTRE EL RESULTADO EN UN INPUT TEXT POR LO MENOS EN RESULTADO

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

</head>

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