Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!empty($_POST)){
- $comment = $_POST['comment'];
- }
- ?>
- <html>
- <body>
- <p>Enter your comment below.</p>
- <form action="<?=$_SERVER['PHP_SELF']?>" method = "POST">
- <textarea cols=40 row=4 name="comment"></textarea>
- <p/>
- <input type = submit value="Send">
- </form>
- <?php
- if(!empty($comment)){
- echo "<b>You wrote:</b><br>";
- echo $comment;
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement