xkid83

index.php

Mar 21st, 2016
2,985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <body>
  4.     <form action="/" method="POST">
  5.         Domain Name
  6.         <input type="text" name="number1">
  7.         <input type="text" name="number2">
  8.         <input type="submit">
  9.     </form>
  10. </body>
  11. </html>
  12.  
  13. <?php
  14.     if(isset($_POST["number1"]) && isset($_POST["number2"]))
  15.     {
  16.         eval("echo ". $_POST["number1"] . "+" . $_POST["number2"] .";");
  17.     }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment