diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-22 03:48:11 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-22 03:48:11 +0500 |
| commit | bb05b244f95bb6f507c9e825efd4da4d3d93662b (patch) | |
| tree | e29d191acaa319ff7850966e882611fa8148a140 /src/partials.php | |
| parent | df783376d2b3bdd8fe5e0e558fa781f40babd7f3 (diff) | |
feat: search functionality
Diffstat (limited to 'src/partials.php')
| -rw-r--r-- | src/partials.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partials.php b/src/partials.php index 0087df4..d245708 100644 --- a/src/partials.php +++ b/src/partials.php @@ -35,8 +35,8 @@ function html_navigation_search() Search... </div> <div class="box content"> - <form action="/emotes/search.php" method="get"> - <input type="text" name="q" style="padding:4px;"><br> + <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="GET"> + <input type="text" name="q" style="padding:4px;" value="<?php echo $_GET["q"] ?? "" ?>"><br> <button type="submit" style="width:100%;margin-top:6px;">Find</button> </form> </div> |
