```
$name = elgg_extract('name', $values);
if (null === $name) {
  $name = htmlspecialchars(get_input('n', '', false), ENT_QUOTES, 'UTF-8');
}
```