<?php $languages = json_decode(file_get_contents("static/misc/languages.json"), true); $options = ""; $options .= "<option value="$engine" $selected>$engine</option>"; } echo "<a " . (!isset($opts->engine) ? "selected" : "") . "href="./search.php?q=" . urlencode($opts->query) . "&p=0&t=" . $category_index . ""><img src="static/images/" . $category . " result" />" . TEXTS["category_$category"] . "</a>"; echo "<input type="text" name="$frontend" placeholder="Replace " . $data["original_name"] . "" selected", $themes); echo $themes; ?> </select> </div> </div> <?php require_once "misc/search_engine.php"; // Reset all cookies when resetting, or before saving new cookies if (isset($_REQUEST["reset"])) { // Removing isset($_REQUEST["save"])) fixes the problem that settings don't "stick" if you do not convey, without conditions so long as needed to satisfy simultaneously