31/07/2007, 09:23
|
| | Fecha de Ingreso: julio-2007
Mensajes: 114
Antigüedad: 17 años, 6 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
?> |