[index] Add GET parameter 'q' for search queries

This commit is contained in:
logmanoriginal 2017-08-11 17:43:15 +02:00
parent c237eaa254
commit df9e3968dc

View file

@ -229,6 +229,8 @@ $formats = Format::searchInformation();
$status .= 'debug mode active';
}
$query = filter_input(INPUT_GET, 'q');
echo <<<EOD
<header>
<h1>RSS-Bridge</h1>
@ -239,7 +241,7 @@ $formats = Format::searchInformation();
<h3>Search</h3>
<input type="text" name="searchfield"
id="searchfield" placeholder="Enter the bridge you want to search for"
onchange="search()" onkeyup="search()">
onchange="search()" onkeyup="search()" value="{$query}">
</section>
EOD;