xref: /webtrees/resources/views/captcha.phtml (revision 1270d2767576ed4a83917769b0ee3613e3b010bf)
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