KimChoJapFan

Rock, Paper, Scissors: gather.php

Sep 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. require('required.php');
  3. $database = new database;
  4. if(isset($_POST["submit"])){
  5.     $passcode = sha1($_POST["code"]);
  6.     $conn = $database->conn();
  7.     echo $database->gather($conn,$passcode);
  8. }
  9. ?>
  10. <html>
  11. <head>
  12. <title>Gather Results</title>
  13. </head>
  14. <body>
  15. <center>
  16. <form method="POST">
  17. <table border="0px" cellspacing="5px" cellpadding="0px">
  18. <tr><td><label>Passcode: </label></td><td><input type="text" name="code" /></td></tr>
  19. <tr><td colspan=2 align="center"><input type="submit" name="submit" value="Gather" /></td></tr>
  20. </table>
  21. </form>
  22. </center>
  23. </body>
  24. </html>
Add Comment
Please, Sign In to add comment