Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('config.php');
- ?>
- <form action="index.php" method="POST">
- Author:
- <input type="text" name="author">
- <br>
- Quote:
- <input type="text" name="quote">
- <br><br>
- <input type="submit" value="Submit" name="submit">
- </form>
- <?php
- $author = $_POST['author'];
- $quote = $_POST['quote'];
- $this_connection = new Connection;
- if(isset($_POST['submit'])){
- $this_connection->insert_db();
- }
- ?>
Add Comment
Please, Sign In to add comment