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' );
- }
- ?>
- <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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement