Advertisement
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();
- if ($_POST['review']) {
- $mybook->append($_POST['review']);
- $mybook->save();
- header ( 'Location: http://php1.local/1guestbook.php' );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement