Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include __DIR__ . '/guestbook.php';
- $mybook = new GuestBook( __DIR__ . '/reviews.txt');
- $mybook->getData();
- $mybook->append($_POST['review']);
- $mybook->save();
- $mybook->showbook();
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; meta charset="utf-8">
- </head>
- <body>
- <form name="test" method="post" action="/addReview.php">
- <p><input type="text" name="review"> <input type="submit" value="Оставить отзыв"></p>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment