<? $name = isset($_REQUEST['name']) ? htmlspecialchars($_REQUEST['name']) : '' ?> <input type="text" name="name" value="<?= $name ?>" />