diff options
Diffstat (limited to 'src/application/views/form_search.php')
-rw-r--r-- | src/application/views/form_search.php | 6 |
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> |