Guest User

Untitled

a guest
Dec 6th, 2019
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Guestbook</title>
  6. </head>
  7. <body>
  8. <h1>Guestbook</h1>
  9. <% if (errorMessage)%>
  10. <section class="error">
  11. <p><%= errorMessage %></p>
  12. </section>
  13. <% for (let entry of messages) { %>
  14. <%= entry.name %> <br>
  15. <%= entry.message %> <br>
  16. <% } %>
  17. <form action="/entry/create" method="POST">
  18. <!--<label for="name">Input your name</label><br>-->
  19. <input name="name"type="text", placeholder="Input your name"><br>
  20. <textarea name="message" cols="30" rows="10", placeholder="Input your message"></textarea><br>
  21. <input type="submit" value="Send">
  22. </form>
  23. </body>
  24. </html>
RAW Paste Data