Guest User

Untitled

a guest
Dec 25th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. include ('config.php');
  3. ?>
  4. <form action="index.php" method="POST">
  5. Author:
  6. <input type="text" name="author">
  7. <br>
  8. Quote:
  9. <input type="text" name="quote">
  10. <br><br>
  11. <input type="submit" value="Submit" name="submit">
  12. </form>
  13. <?php
  14. $author = $_POST['author'];
  15. $quote = $_POST['quote'];
  16.  
  17. $this_connection = new Connection;
  18. if(isset($_POST['submit'])){
  19. $this_connection->insert_db();
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment