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