<form action="index.php?name=<?= isset($_GET['name']) ? urlencode($_GET['name']) : '' ?>" method="get">