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