Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //(PAGINA HTML)//
- <html>
- <head></head>
- <body>
- <form method=POST action="processo.php">
- Digite um numero:
- <input type=number name=num1>
- Digite outro numero:
- <input type=number name=num2>
- <input type=submit value=Calcular>
- </form>
- </body>
- </html>
- //(PAGINA INDEX.PHP)//
- <?php
- $num1=$_POST['num1'];
- $num2=$_POST['num2'];
- $resultado= $num1+ $num2;
- echo "O resultado é $resultado";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement