Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head> <title>Calc</title> </head>
- <body> <form action="calc.php" method="post"> Digite Aqui: <input type="text" name="num" /><br /> <br /> <br /> <input type="submit" value="submeter" /> <br /> <br /> </form>
- </body>
- </html>
- <?php
- $lol = explode("x", $_POST['num']);
- echo "O resultado foi: ".$lol[0]*$lol[1];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement