summaryrefslogtreecommitdiff
path: root/src/templates/edit.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-10-13 21:51:07 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-10-13 21:51:07 +0100
commitcbaedbc5251f3b127bd81242d1344c0cd3e56e0c (patch)
treef76273742992d8f06983fd5d6fef37efc85a2c07 /src/templates/edit.php
parent2ab5661583d74b03c86bb4f437616bb634d9c4fc (diff)
Implemente redirects
Diffstat (limited to 'src/templates/edit.php')
-rw-r--r--src/templates/edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/templates/edit.php b/src/templates/edit.php
index a3c6930..d5f5a08 100644
--- a/src/templates/edit.php
+++ b/src/templates/edit.php
@@ -6,12 +6,13 @@
<title>Bookmarks</title>
</head>
<body>
- <form action="/edit" method="POST">
+ <a href="/">Back</a>
+ <form action="/update" method="POST">
<input type="hidden" name="id" value="<?php echo $bookmark->id; ?>"/>
<input type="text" name="url" maxlength="512" autofocus value="<?php echo $bookmark->url; ?>"><br>
<input type="text" name="title" maxlength="256" value="<?php echo $bookmark->title; ?>"><br>
<input type="text" name="tag" maxlength="8" value="<?php echo $bookmark->tag; ?>"><br>
- <button type="submit">Update</button>
+ <button type="submit">Update</button>
</form>
</body>
</html>