summaryrefslogtreecommitdiff
path: root/src/application/views/form_search.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-18 23:05:35 +0200
committerJonas Kohl2024-09-18 23:05:35 +0200
commit01454544896827113e49db0d2848b5aab6ce14ae (patch)
tree9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/form_search.php
parenta65d424263adfbff9629c7d91a613e4504c84613 (diff)
Many changes
Diffstat (limited to 'src/application/views/form_search.php')
-rw-r--r--src/application/views/form_search.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/application/views/form_search.php b/src/application/views/form_search.php
index edc68b8..ed3752f 100644
--- a/src/application/views/form_search.php
+++ b/src/application/views/form_search.php
@@ -12,11 +12,13 @@ RequestUtils::clearLastForm();
<h1><?= __("Search") ?></h1>
</div>
<?php
-if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
+if (($_formError = RequestUtils::getAndClearFormError("search")) !== null) {
_view("alert_error", ["message" => $_formError]);
}
?>
-<form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>" method="post">
+<form action="." method="get">
+ <input type="hidden" name="form_id" value="search">
+ <input type="hidden" name="_action" value="search">
<div class="form-group">
<div class="input-group">
<input class="form-control" type="search" id="i_query" name="query" value="<?= htmlentities($lastForm["query"] ?? $query ?? "") ?>" required autofocus>