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