daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head> <title>Calc</title> </head>
  3.     <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>
  4.     </body>
  5. </html>
  6. <?php
  7.  $lol = explode("x", $_POST['num']);
  8. echo "O resultado foi: ".$lol[0]*$lol[1];
  9. ?>
RAW Paste Data
Top