xref: /webtrees/resources/views/captcha.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5/**
6 * @var string $x
7 * @var string $y
8 * @var string $z
9 */
10
11?>
12<input type="text" name="<?= e($x) ?>" class="d-none" aria-label="field1" value="ok">
13<input type="text" name="<?= e($y) ?>" class="d-none" aria-label="field2" value="<?= e($z) ?>">
14
15<script>
16    document.getElementsByName(<?= json_encode($x, JSON_THROW_ON_ERROR) ?>)[0].value = document.getElementsByName(<?= json_encode($y, JSON_THROW_ON_ERROR) ?>)[0].value;
17</script>
18