aboutsummaryrefslogtreecommitdiff
path: root/guestbook/index.php
blob: 8908e257904ee30cb25f3417dba8f25d844ebd56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!--?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Guestbook</title>
    <link href="../style.css" rel="stylesheet" type="text/css" media="all">
    <link href="./comments.css" rel="stylesheet" type="text/css" media="all">
    <style>
      form td:first-child {
        text-align: right;
      }
    </style>
    <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); ?>
  </head>
  <body>
    <?php include($_SERVER['DOCUMENT_ROOT'] . '/nav.php'); bg();
          include($_SERVER['DOCUMENT_ROOT'] . '/common.php'); ?>
    <h1>guestbook</h1>
    <h2 id="caption">say hi!</h2>
    <nav>
      <a href="feed.php">RSS</a>
    </nav>
    <?php
      $return = $_GET["return"];
    ?>
    <form action="submit.php" method="post" autocomplete="off">
      <textarea name="msg" placeholder="I know what you are." style="opacity: 0; position: absolute; left: -10000rem; height: 0; width: 0; overflow: clip;"></textarea>
      <table>
        <tr>
          <td>Name<span style="color:red;">*</span></td>
          <td><input type="text" name="name"></td>
        </tr>
        <tr>
          <td>Website</td>
          <td><input type="text" name="website" placeholder="https://"></td>
        </tr>
        <tr>
          <td>Link something cool</td>
          <td><input type="text" name="cool" placeholder="https://"></td>
        </tr>
        <tr>
          <td>How did you find me?</td>
          <td><textarea name="found"></textarea></td>
        </tr>
        <tr>
          <td>Message<span style="color:red;">*</span></td>
          <td><textarea name="message" placeholder="Now supports Markdown!"></textarea></td>
        </tr>
        <tr>
          <td>Bot test (six-letter scientific term for a roly-poly or woodlouse)<span style="color:red;">*</span></td>
          <td><input type="text" name="botcheck" placeholder="*.cool"></td>
        </tr>

        <?php if($return) { echo("<tr><td  colspan='2' style='text-align: center;''>".$gbform_messages[$return]."</td></tr>"); }?>
        <tr>
          <td colspan="2" style="text-align: center;"><input type="reset"><input type="submit" value="Submit"></td>
        </tr>

      </table>
      <input type='text' name='entry' value='guestbook' style='display: none;' readonly>
    </form>
    <?php include('./comments.php'); echo_comments('guestbook'); ?>
  </body>
</html>