<input type="number" name="number_of_results" value="<?php echo htmlspecialchars($opts->number_of_results ?? "10") ?>" > </div> </div> <?php require_once "misc/header.php"; require_once "misc/tools.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 go back into settings page to make additional changes. if (isset($_SERVER["HTTP_COOKIE"])) { $cookies = explode(";", $_SERVER["HTTP_COOKIE"]); foreach($cookies as $cookie) { $parts = explode("=",