io sto cercando di creare una calcolatrice in php,
ho creato il file somma1.php cosi
Codice HTML:<form name="modulo" action="somma.php" method "post"> <input type="text" name="addendo" size="20" maxlength="15"><br> <input type="text" name="ciao" size="20" maxlength="15"><br> <td colspan="2" align="center"><input type="submit" value="calcola" name="invio"> </form>Codice PHP:
<?php
@$a= $_POST[addendo];
@$b=$_POST[ciao];
echo $a+$b;
?>